cattolover's blog

By cattolover, history, 3 years ago, In English

It will be extremely helpful if someone could point out the fault in my code 195030973 for problem 1575J - Jeopardy of Dropped Balls .This is my first time posting so i am extremely sorry for the mistakes in norms i have done also english is not my first language so sorry guys for the inconvenience

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

»
3 years ago, hide # |
 
Vote: I like it +2 Vote: I do not like it

This blog look like a bug in "Recent actions" section)

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

dislike this post to millions all i need is someone to review my code

  • »
    »
    3 years ago, hide # ^ |
    Rev. 2  
    Vote: I like it +1 Vote: I do not like it

    the memorization of dp is wrong: if a ball went to the right or left you remember it went there and put it into the dictionary and all the previous steps are put into the dictionary; but for the previous steps the answer will be changed because the direction at the current cell is changed; but you dont handle this change