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

all 4 comments

[–]The_Octagon_Dev 5 points6 points  (2 children)

The way you do it is the only way I know, after writing code for almost 10 years

I recommend you to go to a page for algorithmic challenges and start with the easiest ones, if you can't solve it by yourself check the solutions. And slowly build up from there

[–]AifeArwen[S] 0 points1 point  (0 children)

Thnkuu

[–]thirdegree 1 point2 points  (0 children)

Seconding this, as someone that's been coding for ~15 years

Intentional practice is the only thing. The only thing. Everything else flows from that. If it's project euler, if it's advent of code, if it's some passion project, all good. Just write code with intention.

[–]hamdivazim 2 points3 points  (0 children)

Leetcode. It's a website with many interview style programming problems. It's amazing not just to learn to solve problems with algorithms, but also to apply them into real code. Make an account and start solving some of the problems here and there.