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









This blog look like a bug in "Recent actions" section)
dislike this post to millions all i need is someone to review my code
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