I've realised that I have a really bad habit of solving the sample/example instead of the problem itself. I come up with naive brute force and often times incorrect solution (I do this on leetcode very often) and then I submit and it fails on some test, so I fix it for that test and it fails for the next one then maybe I fix or I just give up and feel bad later that I'm not able to solve leetcode medium problems. Have you faced anything similar? Do you have any tips or suggestions for me? I understand practicing and trying to just keep at it at the problem helps, but any other practical approaches or mind tricks you might have used or know of, please share... Thanks a lot in advance!