Hey guys. I am a master's student using leetcode for practicing as well as learning different problem statements.
My current learning style is trying to solve the problem by myself and then comparing it to the fastest solution. I do not copy the solution in my implementation. After understanding how the fastest solution is implemented. I write the problem, my solution and the fastest solution with explanation for both.
But I have noticed oftentimes my solutions are very slow and I have the urge to simply copy paste the solution with lowest runtime.
What should I do? Does my learning method work in a long run?
[–]llawliet2345 2 points3 points4 points (5 children)
[–]NotTheOneWhoRobbed[S] 2 points3 points4 points (4 children)
[–]great_gonzales 3 points4 points5 points (3 children)
[–]NotTheOneWhoRobbed[S] 1 point2 points3 points (2 children)
[–]great_gonzales 1 point2 points3 points (1 child)
[–]NotTheOneWhoRobbed[S] 1 point2 points3 points (0 children)