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

ومـما زادني شـرفـاً وتـيــهـاً
وكدت بأخمصي أطأ الـثريا
دخولي تحت قولك يا عبادي
وأن صـيَّرت أحمد لي نـبيـا
Download Telegram
used in many applications, such as the Internet Web browsers history and the “undo” mechanism in Text editors
Anonymous Quiz
3%
queue
90%
stack
4%
Array
3%
Linked list
peek() : adds a new item to the top of the stack. It needs the item and returns nothing. this definition is not true.
Anonymous Quiz
23%
T
77%
F
The order of insertion is the reverse of the order of removalqueue
Anonymous Quiz
24%
queue
73%
stack
4%
Array
Using python list , Stack ADT "push()" is implemented using append (item)
Anonymous Quiz
92%
T
8%
F
Using python list , Stack ADT "peek()"
is implemented using [len (self.item) +1]
Anonymous Quiz
20%
T
80%
F
Using python list , Stack ADT "size()" is implemented using " len (self.item) "
Anonymous Quiz
90%
T
10%
F
QUEUE and DEQUES
Deque is a hybrid linear structure, so it requires the LIFO and FIFO ordering.
Anonymous Quiz
43%
T
57%
F
deque ()
creates a new empty deque. returns an empty queue
Anonymous Quiz
59%
T
41%
F
Elements are added at one end called(front)
Anonymous Quiz
39%
T
61%
F
Elements are removed from the other end(front)
Anonymous Quiz
83%
T
17%
F
dequeue()
removes the rare item, returns the item.
Anonymous Quiz
34%
T
66%
F
A network printer is an example of a
Anonymous Quiz
7%
Stack
90%
Queue
3%
Linked List
0%
Array
in Queue is_empty() : tests to see whether the queue is empty. It needs no parameters and returns the item.
Anonymous Quiz
46%
T
54%
F
enqueue(item) adds a new item to the rear of the queue. It needs the item and returns nothing.
Anonymous Quiz
83%
T
17%
F
Using python list , Queue ADT "enqueue()" is implemented using pop (0 , item)
Anonymous Quiz
20%
T
80%
F
the string "bla bla bla" is a palindrome word.
Anonymous Quiz
44%
T
56%
F
Using python list , Queue ADT "size()" is implemented using len (self.item - 1 )
Anonymous Quiz
32%
T
68%
F
Deque