Hey everyone! I'm diving into competitive programming, but I've hit a bit of a wall. I often understand the algorithms conceptually, but struggle with actually coding them out. Sometimes the problem statements aren't clear either. I've had some challenges with AI tools before, so I'm looking for advice on how to effectively write code for algorithms. Any tips or resources would be greatly appreciated!
2 Answers
Can you code an algorithm without looking it up or using AI tools? It might be worth trying to write one from scratch, like a basic sorting algorithm. Just loop through your list, compare values, and swap them if they're in the wrong order. It's all about repetition and getting comfortable with the concepts.
It sounds like you might need to start with more practice! A lot of folks struggle with coding algorithms at first, so you're not alone. It helps to read through similar discussions—there's a lot of useful information out there that can guide you. Also, check out some of these great books: "Think Like A Programmer" by V. Anton Spraul and "The Pragmatic Programmer". They can really boost your understanding. Don't forget, regular practice is key!
Thanks for the recommendations! I've heard good things about those books, I'll definitely look them up. It's reassuring to know that practice really makes a difference.

I can write basic algorithms, but I really struggle to tweak them for specific problems, and that's where I get lost. I appreciate the tips though!