Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged data-structures
5
votes
2
answers
301
GO Classes Test Series 2023 | Data Structures | Test 3 | Question: 6
Suppose you implement a queue using a singly linked list with head and tail pointers so that the front of the queue is at the tail of the list, and the rear of the queue is at the head of the list. What is the best possible worst-case ... $O(n)$ for dequeue. $O(n)$ for enqueue and $O(1)$ for dequeue. $O(n)$ for both functions.
Suppose you implement a queue using a singly linked list with head and tail pointers so that the front of the queue is at the tail of the list, and the rear of the queue ...
GO Classes
627
views
GO Classes
asked
May 22, 2022
DS
goclasses2024-ds-3-weekly-quiz
goclasses
data-structures
queue
linked-list
1-mark
+
–
4
votes
2
answers
302
GO Classes Test Series 2023 | Data Structures | Test 3 | Question: 7
Consider a circular array-based implementation of the queue where the front and rear has been initialized to $-1.$ Array size is $N.$ Which of the following statements is true for the number of elements or size of the queue ... S1 is true but S2 is false S1 is false but S2 is true Both statements are true Both statements are false
Consider a circular array-based implementation of the queue where the front and rear has been initialized to $-1.$ Array size is $N.$Which of the following statements is ...
GO Classes
501
views
GO Classes
asked
May 22, 2022
DS
goclasses2024-ds-3-weekly-quiz
goclasses
data-structures
queue
circular-queue
1-mark
+
–
3
votes
2
answers
303
GO Classes Test Series 2023 | Data Structures | Test 3 | Question: 8
Which of the following is/are correct about implementation of stack and queue. If stack is implemented as an array, all the push and pop operations can be performed in constant time. If stack is implemented as a ... queue is implemented as a linked list, all the enqueue and dequeue operations can be performed in constant time.
Which of the following is/are correct about implementation of stack and queue.If stack is implemented as an array, all the push and pop operations can be performed in con...
GO Classes
492
views
GO Classes
asked
May 22, 2022
DS
goclasses2024-ds-3-weekly-quiz
goclasses
data-structures
stack
queue
multiple-selects
1-mark
+
–
Page:
« prev
1
...
6
7
8
9
10
11
12
13
14
15
16
...
60
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register