Solving programming problems on paper

It was often emphasized that before embedding something in the code, one should try to solve the problem on paper. This means developing an algorithm and the like. I believe that this means a strategy on how we will solve this problem.

I recently started doing some practical coding for online judges and some college projects. I found that I have the habit of directly capturing the problem and sitting right on the computer and starting to encode the solution. I feel that this is what blocks me from moving forward. I find that I have no motivation to solve it on paper. I tried many times to solve the problem on paper. But I end up looking at the page and finally sit down on the computer.

So I need help: What are the benefits of solving problems on paper / white boards and how can I get better? What should I write and how to make the most of it?

(I apologize if the question is too broad or not constructive, but that’s what bothers me, and so I decided to try it SO. I also don’t know if this helps, but I program in Java and C ++)


EDIT: I found that this topic was suspended primarily on the basis of opinion. I present my business here:

FROM Frequently Asked Questions

Constructive subjective questions:

  • inspire answers explaining why and how
  • have long rather than short answers
  • have a constructive, fair and impartial tone.
  • We invite you to share your experience with your opinions.
  • ,
  • - , .

:

  • - , / .
  • , , , , .
  • .
  • , , . , , , . ?
  • , , , - .
  • , , , -, . , . , SO .

, . , , , , . , , ; .

+4

Source: https://habr.com/ru/post/1531797/


All Articles