2 ms·
I struggled on the exact same problem on leetcode - It took me over three days of obsessive coding to finally get something that worked (even then it was so hac
by mlazos 8y ago
I struggled on the exact same problem on leetcode - It took me over three days of obsessive coding to finally get something that worked (even then it was so hacky that it was non-deterministic, but somehow it passed the tests) In the end my point is that sometimes problems will take a long time to figure out, and that’s okay as long as you’re willing to commit the time. One thing you’ll learn with more experience is that if you’re on the edge of your understanding it will always be a struggle, the question you have to answer is do you enjoy the process enough to keep doing it?
- Tmp1234 8y agoI don't mind the struggle so much as the uncertainty. Will I be able to get a good job? Will I be good enough to keep it? Will I be good enough so I have enough free time to enjoy other parts of life? If I had a definite yes to all those questions, I wouldn't really mind as it would be the normal process of learning. But going through all this just to fail or plateau at a point where I have to work 12 hour days everyday to do what the guy next to me is doing in 8 hour weekdays is not the life I want.