Effective way to solve any programming problem

The effective way to learn and write any program is to follow as

  1. Depend upon passion and love toward programming.
  2. Make an account on a "leetcode" like platform which provides the facility to write code for a new problem
  3. Think about how the problem can be solved if you solve the problem.
  4. Write its algorithm on paper.
  5. Convert the algorithm into code and dry run it on paper on different test cases whether it gives the true desired answer or not.
  6. Write paper code on IDE.