Derived Channel
1.54K subscribers
252 photos
4 videos
374 files
68 links
القناة الأساسية
@stepbystep001

ومـما زادني شـرفـاً وتـيــهـاً
وكدت بأخمصي أطأ الـثريا
دخولي تحت قولك يا عبادي
وأن صـيَّرت أحمد لي نـبيـا
Download Telegram
Both array-based sequences and linked lists keep elements in a certain order, but using a very different style.
Anonymous Quiz
85%
T
15%
F
Each node has at least a single pointer to the next node
Anonymous Quiz
6%
Array
94%
Linked list
The last element points to NULL
Anonymous Quiz
96%
T
4%
F
connected by pointers and can grow or shrink
Anonymous Quiz
98%
Linked list
2%
Array
Arrays waste memory in terms of extra reference points. Linked lists waste memory by allocating lots of space initially.
Anonymous Quiz
22%
T
78%
F
search(item) searches for the item in the list. It needs the item and returns the item
Anonymous Quiz
57%
T
43%
F
List() creates a new list that is empty. It needs no parameters and returns an empty list
Anonymous Quiz
85%
T
15%
F
Generally "linked list" means a doubly linked list.
Anonymous Quiz
11%
T
89%
F
in linked list “head” must be … specified
Anonymous Quiz
33%
implicitly
67%
explicitly
Each node contains the list item’s data itself + a reference to the next node
Anonymous Quiz
96%
T
4%
F
in linked list The …. of the list refers to the first node which contains the first item of the list
Anonymous Quiz
5%
tail
2%
front
5%
rear
88%
head
the special reference “None” will again be used to state that the head of the list does not refer to anything.
Anonymous Quiz
80%
T
20%
F
The result of the Boolean expression self.head==None will only be true if there are no nodes in the linked list.
Anonymous Quiz
87%
T
13%
F
Derived Channel
Photo
The search() Method
Anonymous Quiz
23%
T
77%
F
Derived Channel
Photo
List Traversal
Anonymous Quiz
94%
T
6%
F
Derived Channel
Photo
The search() Method
Anonymous Quiz
38%
T
62%
F