You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#You are given a NxM array, and starting coordinates of a player(A,B) and a series of Z steps to be completed, with each step contaning 2 numbers P and Q Each step is to repeat the given operation till it can no longer be done and move to the nexr one.
#A = A + P B = B + Q The objective is to calculate the no of times the operation can be performed Note that the current position of the player must always be inside the array.