Microsoft logoMicrosoft
Coding·60 minMembers

Clone a Doubly Linked List with Special Pointers

Members only

Microsoft onsite linked-list coding question: deep-copy a doubly linked list whose nodes carry an extra pointer that can reference any node, while building your own list classes from scratch. Most of the difficulty is in making every pointer in the copy independent of the input, which is easy to get wrong under time pressure.

SWE
linked-list
hashmap
medium
Frequency
Single report
Last asked
2026-10-08
Stage
onsite-coding

Members get

  • Full problem statement
  • Step-by-step approach
  • 3 common pitfalls
  • 2 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...