Practice40 min
Practice: Gaps, Clones & Carries
Offset pointers, cloning with a node map, carry arithmetic, and Floyd's on an array-as-graph.
Four mediums that each add one twist: a fixed pointer gap, an old-node-to-clone map, digit-by-digit addition with carry, and cycle detection applied to an array read as next-pointers.
Problems0 of 4 solved
- Not startedRemove Nth Node From End of Listtwo pointers with n-node gapmedium
- Not startedCopy List with Random Pointerhash map old node → cloned nodemedium
- Not startedAdd Two Numbersdigit-by-digit traversal with carrymedium
- Not startedFind the Duplicate NumberFloyd's cycle detection on index-as-pointer graphmedium