0
implemnting an algorithm from a concept become a nightmare đ
while learning algorithms i dont look at any code i try to implement the concept and optimize the final code then compare with the general approach .. but after dealing with complicated algorithms it became a nightmare
2 Answers
+ 6
I feel you brother. Sometimes it's frustrating to create your own version to an algorithm. However, by creating our own algorithm, we develop our skills in problem solving which will help us in coding later on.
+ 4
Better would be read an existing code and comment it to learn what they did and why. Afterwards, ignore that code and try writing it yourself will be easier.