How to improve logic in coding?

  • Code everyday for at least 2 hours till 1 month.
  • Watch other programmers solving HackerRank(A website to build logic) problems on YouTube and code with them
  • Read codes on GitHub of other better programmers than you. It helps us to come up with new ideas to solve the same problem.
  • Think thoroughly before you code. Always write pseudo code before coding it helps to think.
  • Evolve yourself by solving beginner level problems to solving expert level problems on platforms like LeetCode, CodeWars…