C3 AI logoC3 AI
CodingMembers

Collapse Overlapping Ranges Into Disjoint Spans

Members only

A classic range-consolidation coding question where the input arrives in no particular order and boundary handling matters. The interviewer cares about how you impose structure on the data and how precisely you pin down edge semantics, and the follow-up pushes toward an online setting.

SWE
medium
array
interval
sorting
greedy
Frequency
Single report
Last asked
—
Stage
—

Members get

  • Full problem statement
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 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...