5 Ways to Build and Improve Programming Logic

1. Hang on to the problem. Don't quit just yet.

2. If you want a break from coding, try stimulating your mind with video games that challenge your reasoning skills.

3. Participate in coding challenges more often.

4. Read programming logic books & white papers.  E.g. Programming Challenges by Steven Skiena.