I've come to realize I really need to improve my math skills for programming. While working on some Advent of Code challenges, I struggled with a task involving a safe dial. Although I managed to solve it, I wasn't happy with my solution. I ended up looking up a formula online that was much simpler: ((input % max) + max) % max, while my own solution was unnecessarily complicated with multiple branches. Now I'm feeling bad because I didn't come up with that solution on my own. How can I become better at math so I can create solutions like that myself? I also feel disappointed that I might have missed out on the joy of solving it on my own.
5 Answers
You might want to consider taking an online math class. It's crucial that you build a strong base in math, especially for programming. Don't feel bad about needing help; it shows you're eager to learn. The journey is all about growing your understanding step by step!
Check out Project Euler for math-related coding challenges. It's a fantastic way to improve your math skills while programming. And as for your solutions, don't worry—sometimes simpler solutions look elegant, but functionality is key. Just keep practicing, and you'll see improvement!
Honestly, your main job as a programmer is to solve problems, and if you found a solution that works, that's what matters. Remember, no programmer knows every solution off the top of their head. What's important is learning from those solutions so you're better prepared next time. Just embrace the learning process!
Hey, don't beat yourself up! A lot of programmers look up solutions online; it's completely normal. Copying code is one way to learn, as long as you understand how it works. It's not cheating if you then take that knowledge and apply it to your own problems in the future.
It's great that you're challenging yourself! Just remember, everyone starts somewhere. Make an effort to understand the solutions you find. Resources like Khan Academy or even YouTube tutorials can be super helpful. Practicing math concepts will definitely help you improve over time!

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically