Given a P x Q matrix, a person starts at coordinate (x, y) and takes N random steps in any of the four cardinal directions (up, down, left, right). Stepping outside the boundaries of the grid results…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.