Monotone Cable Routes Across a Data Center Floor With a Blocked Tile

Last updated: November 29, 2026

Quick Overview

Cables on a Meta data center floor grid can only run east or north, from the southwest corner tile (0, 0) to the northeast corner (4, 4). Count the routes, then count the routes that avoid a blocked tile at (2, 2).

Meta
Statistics & Math
Software Engineer
Meta
November 29, 2026
Software Engineer
Online Assessment
Statistics & Math
Easy

0

0

0 solved


Cables on a Meta data center floor grid can only run east or north, from the southwest corner tile (0, 0) to the northeast corner (4, 4). Count the routes, then count the routes that avoid a blocked tile at (2, 2).

This lattice path question is a common warm-up that bridges combinatorics and dynamic programming. The interviewer checks that you see paths as arrangements of moves, can subtract paths through a forbidden point, and can verify with a small grid table.

What the Interviewer Expects
  • Models each route as a sequence of 4 east and 4 north moves
  • Computes C(8,4) = 70
  • Counts paths through the blocked tile by multiplying segments
  • Subtracts to get 34
  • Cross checks with a DP grid
Key Topics to Cover
Lattice paths
Binomial coefficients
Complementary counting
Dynamic programming
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • How do you handle two blocked tiles that can both lie on one path?
  • Write the DP for an arbitrary grid with obstacles.
  • How many routes pass through at least one of (1, 3) and (3, 1)?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Each move is one tile east (E) or north (N). Going from (0,0)(0,0) to (4,4)(4,4) needs exactly 4 E and 4 N moves, 8 moves in total. A route is invalid if it ever lands on (2,2)(2,2)....

Approach

A route is determined by which 4 of the 8 positions are E moves. For the blocked tile, the routes through it are (routes to it) times (routes from it). Subtract....


Submit Your Answer
Markdown supported