Блог пользователя gm_monkey

Автор gm_monkey, история, 35 минут назад, По-английски

Hi! I’m looking for some feedback from people earlier in their CP journey than me :)

I’ve been doing CP for a few years, mostly olympiads and CF. When I got stuck, it was usually on dumb things, like debugging, giving up on an idea too early, or not knowing what to practice next. Nobody told me that was the problem, I just figured it out slowly.

I’m curious what it is for you. What’s the thing slowing you down most right now? And if someone sat with you for an hour, what would you want them to do?

Higher rated people, what do you wish you’d known earlier?

Any answer helps, even one line. Thanks!

  • Проголосовать: нравится
  • +4
  • Проголосовать: не нравится

»
15 минут назад, скрыть # |
 
Проголосовать: нравится +2 Проголосовать: не нравится

I would ask him to teach me how to debug a solution which gets wrong answer on test 2, when we feel the code and the ideas are correct. It always happens that I almost got the right ideas and missed a silly thing.

I've also realised that even after getting the key ideas, I tend to overcomplicate the coding part, and miss small implementation tricks (for ex, iterating from the back of array instead of front or sorting in reverse order )

  • »
    »
    2 минуты назад, скрыть # ^ |
     
    Проголосовать: нравится 0 Проголосовать: не нравится

    For wa 2, i tend to test with random tests manually. Finding the test that was wrong is the mostly hard part for me. AND PLEASE, don’t look at the wrong test. In no olympiad or contest, you wont see it. Maybe if you are desperate.

    If manual random testing doesn’t work, I create a simple random generator and make a obviously correct brute force. And compare the results. This works like 90% of the time. And you test the brute force by just sending it. Bc most of the time getting time limit in order to get ac is worth it. In OI problems, you even get points for the subtasks.

    After finding the test that was giving wrong answer, you just need to cout every single thing that you think can be the bug.

    But not finding and not being able to fix is also a normal thing. That is why we learn from them. I hope this was an answer good enough to help.