3263. Convert Doubly Linked List to Array I
You are given the
head
of a doubly linked list, which contains nodes that have a next pointer and a previous pointer.Return an integer array which contains the elements of the linked list in order.
1 | /** |