C3 AI logoC3 AI
CodingMembers

Minimum Total Manhattan Travel to a Shared Meeting Cell

Members only

A grid coding question about gathering a group of people at one spot with the least combined walking distance. A brute-force scan is easy to see; the interesting part is recognizing structure in the distance measure that avoids it.

SWE
hard
array
sorting
math
grid
Frequency
Single report
Last asked
—
Stage
phone-screen

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 3 common pitfalls
  • 6 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...