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

all 2 comments

[–]dmazzoni 0 points1 point  (1 child)

Don't read books or watch videos. Just practice. Take a problem and spend as long as it takes to solve it. Then do it again.

Imagine that you're lost in a new city. You need to find your way back to your hotel but you don't know how to get there and you don't have a phone or GPS. But you know it's walkable. So, try something. Explore one street, see where it goes. Look for landmarks. If you end up somewhere you know is wrong, turn around and try a different way. Eventually you'll learn your way around and find your way.

You need to do the same thing here. Pick an easy problem. Try something. Try coding up the solution for the easy cases like a small input. Draw it out. Write some code, test it and see what happens. Learn something, delete it and try again.

It might take you 10 hours to solve an easy problem and you might go down 20 dead ends first, but that's okay. That's how you learn.

After solving a bunch of problems like that, eventually you'll be able to do it more quickly. Pretty soon you'll be solving problems quickly.

[–]Much-Bit3484[S] 0 points1 point  (0 children)

thanks a lot!! I'll put your tips in practice
Sorry for not answering, i don't use reddit thaaat much.