+ 2
How can I learn new algorithm?
I have done a lot of assignment so far.However, it takes me hours and hours to finish off one beginner-level or one intermediate-level assignment. I have no way of knowing how to take the best approach when it comes to doing coding assignment.
4 Answers
+ 2
You can read books about programming, or google for algorithms.
But since you're here anyway, you could also study the codes of other people doing the same assignment.
You will make all sorts of interesting observations:
- Other people may have written only half of your code and the result is the same.
- Their code might run faster or manage a larger range of whatever is calculated.
- Or their code looks pretty and is easy to read, while yours is messy.
- Or you compare results and realize: Damn, my code doesn't even work!
Then you can discuss with these people, ask them questions. Maybe they take a look at your code.
And very likely, like this you will discover unknown ways to solve a problem.
+ 2
HonFu is there any way to save or bookmark any answer as i want to save yours as it will help me in future.
+ 2
You can filter q&a for your questions, but after a while you'd still have to dig deep for this one...
Copypaste and save it, I'd say.