k200154's blog

By k200154, history, 16 months ago, In English

Many times, my submission end up failing some test case, and I am left bemused as to what was wrong with it. In such cases, I ask people in the editorial, but that cannot be done for past problems.

I know I can understand the solution from the editorial, but I also want to know what was wrong with my approach (this is especially true when my approach is more or less the same). What should I do?

  • Vote: I like it
  • +1
  • Vote: I do not like it

| Write comment?
»
16 months ago, # |
  Vote: I like it +1 Vote: I do not like it

Practice & debug, check also for corner cases.

in the past I faced the same problem tho, I was wondering why my code fails? i am pretty sure i nailed the approach correctly, I cured it with searching for a mentor --> someone is more experienced than me so I can ask him for a help.

let me tell you mentors are not available 24/7 so all you can do is to practice — debug — clear corner cases, and finally search and check others submissions

btw you can get use of AI chats, such as bard AI from google to assist you for an approach or you can even use it as a code corrector if you couldn't clarify your error.

good luck!

  • »
    »
    16 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Can you be my mentor?

    • »
      »
      »
      16 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I am not that good yet, but feel free to message me whenever you want