Problem 3263 · Easy

Convert Doubly Linked List to Array I

Start at the head and follow next pointers, copying each value into an array until the cursor runs off the end.

Open the interactive visualisation