Karat logoKarat
CodingMembers

Parent-Child Graph: Ancestor and Generation Queries

Members only

A graph problem over parent-child relationships across generations, with several related queries of increasing depth. It checks how comfortably a candidate models family relationships and handles the edge cases in each query.

SWE
medium
graph
hashmap
bfs
topological-sort
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
  • 4 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...