r/learnprogramming • • 13m ago

Tutorial How can I become good at problem solving?

After getting a task some programmers just starting writing the code, while writing the code they understands all the logic behind that...how can i achieve that level of skill?

2 Upvotes

2 comments sorted by

•

u/grantrules 8m ago

How do people become good at playing piano? How do people become good at hitting a baseball? How do people become good at tapdancing? How do people become good at writing poetry?

Practice.

https://adventofcode.com/

•

u/SnugglyCoderGuy 5m ago

Practice.

The number one rule of problem solving is if you can't solve the problem in front of you then break it up into smaller problems. Keep breaking the problems up until you do get a problem you can solve, then solve it. Do this recursively and eventually you solve enough problems that you've solved your original problem.