How can I improve my math skills for programming?

0
16
Asked By CuriousCoder2023 On

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

Answered By LearningLurker22 On

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!

Answered By CodeCracker007 On

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!

Answered By StraightShooter88 On

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!

Answered By PracticalProgrammer95 On

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.

Answered By MathMaverick11 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.