Mo_Huzaifa's blog

By Mo_Huzaifa, history, 21 month(s) ago, In English

problem statement: cses grid paths https://cses.fi/problemset/task/1638/ What is wrong with my code?? code: Link to this code: https://cses.fi/paste/d5d85fe7f661fdba3fd8f3/

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

| Write comment?
»
21 month(s) ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it

Your code is not readable. Do you mind formatting it a little?

You can simply use spoiler tag and triple tilde for a cleaner look like this:

Code

Edit-1: Do write your logic above code so it's easier to figure out mistake

  • »
    »
    21 month(s) ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Now its readable

    • »
      »
      »
      21 month(s) ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I figured out the mistake.

      Hint
      Mistake
»
21 month(s) ago, # |
  Vote: I like it +3 Vote: I do not like it

no help