Problemunvalidated

the insertion order is completely changed — after the resizing. Outcome: the Doubly linked list ends up like this: (4,4),(5,5),(6,6),(7,7),(1,1),(2,2),(3,3),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7).

16acb2bd-5d48-465b-9932-0a46f9ad7640

the insertion order is completely changed — after the resizing. Outcome: the Doubly linked list ends up like this: (4,4),(5,5),(6,6),(7,7),(1,1),(2,2),(3,3),(1,1),(2,2),(3,3),(4,4),(5,5),(6,6),(7,7).