C3 AI logoC3 AI
CodingMembers

Regroup a Linked List by Odd and Even Positions

Members only

A linked-list pointer-manipulation coding question about reordering nodes by their position while keeping relative order inside each group. The constraint on extra memory rules out the obvious shortcut and makes careful pointer bookkeeping the main challenge.

SWE
medium
linked-list
Frequency
Single report
Last asked
—
Stage
onsite-coding

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...