3D Grid Diagonal Walk Probability

Problem

You are given an 8 × 8 × 8 grid whose valid coordinates satisfy:

0 <= x, y, z < 8

Starting at (x, y, z), make exactly N random moves. Each move independently selects on...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: