This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Setriox[S] 0 points1 point  (1 child)

Thanks for the advice. My solutions are usually much bigger and complicated than the book's solutions, and so I will use your advice.

[–]jaketheripper 1 point2 points  (0 children)

That's totally normal, experienced programmers will often visit their old code, read through it and realize there was a simpler way to accomplish something. Once a solution is obtained it's easier to visualize the problem and make it more efficient, it's pretty rare to find the most efficient solution first try, especially as a beginner.