I think it depends on whether you want to practice the skill of coding, or the skill of problem solving.
For me, coding is a means to an end: I want to solve a problem; I want to create something that does something useful; I want to breath life into a figment of my imagination.
I try to immerse myself in the problem; and then I find examining almost anything in related areas will inspire me with new perspectives.
For me, coding is a means to an end: I want to solve a problem; I want to create something that does something useful; I want to breath life into a figment of my imagination.
I try to immerse myself in the problem; and then I find examining almost anything in related areas will inspire me with new perspectives.