World Languages, asked by nishadshital2020, 2 months ago

Consider the link list of an elements. What is the time taken to insert an element after an element pointed by some pointers?​

Answers

Answered by ashokkumarchaurasia
1

To insert an element after an element pointed by some pointer in a linked list will take constant time (only the next pointers of the newly inserted node and the node pointed to by the pointer needs to be changed). So ans is option (a) O(1).

Similar questions