My Coding Test Failure Story
Ah... I took a coding test today and got a time limit exceeded on problem 2. The logic seemed right, but I couldn't optimize it. Really frustrating ㅠㅠ I should form a new study group and hit the books again. How do you all prepare?
4 answers
Yeah, I've been through that too ㅠㅠ Next time you'll do better, fighting!
If you get a timeout on problem 2, it's usually because you chose the wrong data structure or used nested loops. I solve problems by organizing them by type on LeetCode, and sharpened my skills with Baekjoon Gold-level problems. Study groups are good, but it's important to develop the habit of considering efficiency from the start.
But just from the text, I'm not confident the logic is correct. Getting a timeout could mean the approach itself is wrong. You might want to compare it with others' code or get a review.
Algorithms are like brushing your teeth, seriously... I only got better last year after failing more than 10 times. There's no choice but to keep solving them.