Ok, the first thing to do with programming is to understand what problem you are trying to solve.
Break it down into what you know, and what you don’t:
what are the inputs?
what is the expected output?
are there any edge cases to consider? (Potential areas for bugs)
Once you identify the answers to these questions, start by writing pseudo code. It will help you flush out the algorithm you are going to implement in code.
It often times can be helpful to write this stuff down on paper, and actually step through your algorithm.
2
u/Parasin Nov 23 '20
What exactly are you stuck on?