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

Автор cattolover, история, 3 года назад, По-английски

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

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

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

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

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

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

  • »
    »
    3 года назад, скрыть # ^ |
    Rev. 2  
    Проголосовать: нравится +1 Проголосовать: не нравится

    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