I just wasted 4 hours of my life this afternoon for a problem.
Basically, I saw the idea of the problem for about 10-15 minutes after reading, but the implementation was hell for me. After quickly wrote the code about 15 minutes later, I sank in a bunch of WAs and lots of debugging codes. I even had to write the checker myself, when bugs kept going until AC after a total of 4 hours.
I saw other people did the problem in just under 1 hour, which I estimate I could do if I (almost) got the code right from first try and didn't fall into that debugging loophole.
This made me questioned, how could I improve my skills at implementation? Can you guys share some tips for me?



