GoogleSoftware Engineer · Phone ScreenCodemia practiceGroup Odd-Position Map Tiles Before Even-Position Ones
A singly linked list of map tile IDs should be reordered so all nodes at odd positions (1st, 3rd, 5th, ...) come first, followed by all nodes at even positions, each group in original order, using O(1) extra space.
Medium
Coding & Algorithms