Arrange in the correct order, the steps for adding a new node before a specified node (to which we have a reference) in a doubly linked list.
Doubly linked list
Jigsaw
Report a typo
Put the items in the correct order
Set both references of the new node
Take the previous node of the specified node (to which we have a reference) and set the next reference of the previous node to the new one
Modify the previous reference of the specified node (to which we have a reference) to refer to the new node
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.