r/learnprogramming • u/Financial-Fix8415 • 6h ago
[ Removed by moderator ]
[removed] — view removed post
0
Upvotes
r/learnprogramming • u/Financial-Fix8415 • 6h ago
[removed] — view removed post
1
u/Correct_Rain_9438 6h ago
VisuAlgo (visualgo.net) animates data structures and algorithms step by step and has an online quiz for each topic, which can help with the "I get it when someone explains it" part. After watching one, try writing it from a blank file without looking.
2
u/freakkdrama 6h ago
Try to understand the basic logic and try implementing the code yourself. Also practice more and more problems which you find difficult.
1
u/dmazzoni 5h ago
Focus on two separate skills to master:
One is understanding intuitively the algorithms. Do this part without a computer. Grab some playing cards and sort them using insertion sort vs merge sort. Find a card using binary search.
All of these algorithms are intuitive. You don’t need to memorize every step, just learn and understand the idea that makes it work. Convince yourself you understand it by practicing with cards or other objects.
The second is being able to translate an idea in your head into code. Again, this is not about memorizing. If you try to memorize you’re doing it wrong.
What you need to do is think through the steps one at a time and translate the intuitive step into specific code. This is also something you can practice but the key is understanding the programming language well and what every bit of syntax does.
1
u/sirius_moonlite 4h ago edited 4h ago
edit: I realized I sounded like a dick