← Flipkart questions

Probability of survival of a person moving N steps on a matrix

Filed under Flipkart

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.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.