yourFriend
Book question. Explain this solution of Subset Sum problem.
Code: https://paste.mod.gg/hqxraqfhdgeg/0
Copy/pasted from last solution here: https://www.geeksforgeeks.org/subset-sum-problem-dp-25/
But I don't understand it.
I want to understand what, why and how.
My solution was to generate all combinations without repetition but its obviously very slow.
2 replies
How to install dotnet runtime and sdks on debian virtual machine?
This should be simple like:
1. Add appropriate repository
2. Then
sudo apt install
But I'm not able to add repository.
I tried sudo apt-add-repository https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb
It shows following errors:
1. 403 Forbidden
2. 404 Not Found
I'm new to linux9 replies
Need guidance on how to develop networks(not https) with fellow C# developers.
Hello, everyone. I'm going to start preparing seriously for job as .net full stack developer. Here's my game plan:
1. First 6 months:
1.1 Fundamentals
1.2 DSA
1.3 OOP
1.4 Asynchronous programming (optional)
1.5 Networking (optional)
2. Next 1 year:
2.1 SQL
2.2 ASP.NET Core
2.3 Some UI (haven't decided which one)
.
.
.
Haven't decided yet.
2. I have plenty of free and paid resources online.
3. Plenty of online certifications, like, w3school, MSDN, Coursera, Edx, Udemy, freeCodeCamp. hopefully they will be enough.
4. But how to develop networks with fellow devs. as I'm self studying at home and not in a university campus.
3 replies
Is Merge Sort implementation wrong in Wikipedia?
https://en.wikipedia.org/wiki/Merge_sort
In the below code:
1.
iMiddle = (iEnd - iBegin) / 2
should be iMiddle = iBegin + (iEnd - iBegin) / 2
I guess.
2. In method TopDownMerge
array B was sorted but never copied to array A.
10 replies
How to stop git from tracking all a folder(.vscode) and everything inside it.
Git is init in root say
RootFolder
which contain multiple projects say P1
, P2
and so on and each project folder has .vscode
folder.
I have tried this from RootFolder
git rm --cached -r .vscode/
But it says
fatal: pathspec '.vscode/' did not match any files
However it works from parent folders i.e. P1
, P2
, etc. And I have got hundreds of them.5 replies