157k views
3 votes
If you are writing an algorithm and you aren’t confident that you understand the problem, what can you do?

User BKay
by
6.6k points

1 Answer

13 votes

Answer:

divide it into smaller pieces

Step-by-step explanation:

Usually, the main reason a programmer does not understand a problem fully is that there is too much information. The best way to try and fully understand a problem is to divide it into smaller pieces. Start off by answering the question what is the expected output for an input. Then divide each individual issue within the problem. This will allow you as a programmer/developer to create an individual solution for each individual issue within the problem and then test to make sure that the input gives the correct output.

User Interrobang
by
6.8k points