What are the closures?
Anonymous Quiz
55%
Both Function objects and Scope where function variables are resolved
28%
Scope where function variables are resolved
7%
Function objects
10%
Function return value
π1
Which of the following is false about a doubly linked list?
Anonymous Quiz
10%
We can navigate in both the directions
19%
It requires more space than a singly linked list
24%
The insertion and deletion of a node take a bit longer
47%
Implementing a doubly linked list is easier than singly linked list
π1
Explanation:
A doubly linked list has two pointers βleftβ and βrightβ which enable it to traverse in either direction. Compared to singly liked list which has only a βnextβ pointer, doubly linked list requires extra space to store this extra pointer. Every insertion and deletion requires manipulation of two pointers, hence it takes a bit longer time. Implementing doubly linked list involves setting both left and right pointers to correct nodes and takes more time than singly linked list.
A doubly linked list has two pointers βleftβ and βrightβ which enable it to traverse in either direction. Compared to singly liked list which has only a βnextβ pointer, doubly linked list requires extra space to store this extra pointer. Every insertion and deletion requires manipulation of two pointers, hence it takes a bit longer time. Implementing doubly linked list involves setting both left and right pointers to correct nodes and takes more time than singly linked list.