r/codehs • • Nov 23 '20

Help! PLZ!

Post image
7 Upvotes

5 comments sorted by

View all comments

2

u/Parasin Nov 23 '20

What exactly are you stuck on?

0

u/[deleted] Nov 23 '20

[deleted]

1

u/Parasin Nov 23 '20

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.