Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged goclasses-da-dpp
4
4 votes
1
1 answer
179
179 views
GO Classes DPP | GATE CS, DA | Data Structure | BST Search
The following strings are inserted into an empty Binary Search Tree in the given order, using normal lexicographic dictionary order:$\text{Paris, London, Rome, Vienna, Du...
GO Classes
179
views
asked
Jul 14
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-224
goclasses-cs-dpp
goclasses-cs-dpp-day-322
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-search-tree
+
–
5
5 votes
3
3 answers
249
249 views
GO Classes DPP | GATE CS, DA | Data Structure | BST Height
Assume height is counted as the number of nodes on the longest root-to-leaf path.A Binary Search Tree contains exactly $403$ nodes.Which option gives the minimum possible...
GO Classes
249
views
asked
Jul 14
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-224
goclasses-cs-dpp
goclasses-cs-dpp-day-322
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-search-tree
height
+
–
4
4 votes
1
1 answer
177
177 views
GO Classes DPP | GATE CS, DA | Data Structure | BST Property
Which of the following statements about Binary Search Trees is correct?If $\texttt{y}$ is in the left subtree of node $\texttt{x}$, then $\texttt{y.key >= x.key}$. If $\t...
GO Classes
177
views
asked
Jul 14
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-224
goclasses-cs-dpp
goclasses-cs-dpp-day-322
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-search-tree
+
–
4
4 votes
2
2 answers
259
259 views
GO Classes DPP | GATE CS, DA | Data Structure | BST Postorder Update
The postorder traversal of a binary search tree is:$\text{1, 12, 4, 22, 18, 16}$What is the new postorder traversal after inserting $10$ and $14$ into the BST?$\text{1, 1...
GO Classes
259
views
asked
Jul 13
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-223
goclasses-cs-dpp
goclasses-cs-dpp-day-322
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-search-tree
tree-traversal
+
–
6
6 votes
1
1 answer
222
222 views
GO Classes DPP | GATE CS, DA | Data Structure | Traversal Logic
A binary tree has:Left subtree containing $1000$ nodes Right subtree containing $100$ nodesHow many nodes are processed before the root in preorder, inorder, and postorde...
GO Classes
222
views
asked
Jul 13
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-223
goclasses-cs-dpp
goclasses-cs-dpp-day-321
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-tree
tree-traversal
+
–
5
5 votes
2
2 answers
225
225 views
GO Classes DPP | GATE CS, DA | Data Structure | Tree Traversal
A binary tree has the following traversals:Preorder traversal $: \text{A M P K L D H T}$ Inorder traversal $:\text{P M L K A H T D}$Which of the following is the postorde...
GO Classes
225
views
asked
Jul 13
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-223
goclasses-cs-dpp
goclasses-cs-dpp-day-321
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-search-tree
tree-traversal
+
–
6
6 votes
1
1 answer
181
181 views
GO Classes DPP | GATE CS, DA | Data Structure | Traversal Output
Consider the following binary tree:Which option correctly gives the preorder, postorder, inorder, and level-order traversals?Preorder $:\texttt{9 15 23 12 8 6 2 7 10 5 35...
GO Classes
181
views
asked
Jul 13
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-223
goclasses-cs-dpp
goclasses-cs-dpp-day-321
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-tree
tree-traversal
+
–
6
6 votes
1
1 answer
159
159 views
GO Classes DPP | GATE CS, DA | Data Structure | Postorder Traversal
Consider the following binary search tree:If we traverse the tree in postorder and print only the key values that are greater than $12$ and less than $20$, what will be t...
GO Classes
159
views
asked
Jul 13
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-223
goclasses-cs-dpp
goclasses-cs-dpp-day-321
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-search-tree
tree-traversal
+
–
6
6 votes
1
1 answer
201
201 views
GO Classes DPP | GATE CS, DA | Data Structure | Nearly Balanced Tree
A node of a binary tree is called nearly balanced if one of the following holds:The node is a leaf. The node has one child and that child is a leaf. The node has two chil...
GO Classes
201
views
asked
Jul 11
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-223
goclasses-cs-dpp
goclasses-cs-dpp-day-320
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-tree
+
–
6
6 votes
2
2 answers
234
234 views
GO Classes DPP | GATE CS, DA | Data Structure | Complete Tree Array
A complete binary tree is stored in an array using $\mathbf{1}$-based indexing, where the root is stored at index $1$.For a node stored at index $11$, which of the follow...
GO Classes
234
views
asked
Jul 11
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-222
goclasses-cs-dpp
goclasses-cs-dpp-day-320
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-tree
multiple-selects
+
–
7
7 votes
1
1 answer
194
194 views
GO Classes DPP | GATE CS, DA | Data Structure | Height and Leaves
A binary tree has height $4$, where height is measured as the maximum number of edges from the root to a leaf.Can such a binary tree have exactly $8$ leaves?Yes, because ...
GO Classes
194
views
asked
Jul 11
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-222
goclasses-cs-dpp
goclasses-cs-dpp-day-320
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-tree
+
–
6
6 votes
1
1 answer
193
193 views
GO Classes DPP | GATE CS, DA | Data Structure | Full Binary Tree
Is it possible to construct a full binary tree with exactly $8$ internal nodes and $7$ leaves?Yes No
GO Classes
193
views
asked
Jul 11
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-222
goclasses-cs-dpp
goclasses-cs-dpp-day-320
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-tree
+
–
0
0 votes
1
1 answer
108
108 views
GO Classes DPP | GATE DA | Python & DSA | Nested Dictionary
Consider the following dictionary:goals = {"Country":{"Ronaldo":123,"Messi":103,"Pele":83}, "Club":{"Ronaldo":[512,51,158],"Pele":[604,49,26]}}Which of the following stat...
GO Classes
108
views
asked
Jul 11
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-222
python-&-dsa
goclasses-python-&-dsa-practice-questions
data-dictionary
+
–
7
7 votes
1
1 answer
307
307 views
GO Classes DPP | GATE CS, DA | Data Structure | Stack Implementation & DFS
Assume there are $n$ elements in the data structure. Consider the following statements:$\text{S1}:$ A stack can be implemented using a linked list such that each individu...
GO Classes
307
views
asked
Jul 10
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-222
goclasses-cs-dpp
goclasses-cs-dpp-day-319
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
stack
+
–
0
0 votes
1
1 answer
102
102 views
GO Classes DPP | GATE DA | Python & DSA | FIFO Trace
A queue follows FIFO order. Consider the following operations on an initially empty queue:q = [] q.append("A") q.append("B") q.append("C") x = q.pop(0) q.append("D") y = ...
GO Classes
102
views
asked
Jul 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-221
python-&-dsa
goclasses-python-&-dsa-practice-questions
queue
+
–
0
0 votes
1
1 answer
139
139 views
GO Classes DPP | GATE DA | Python & DSA | Queue with Two Stacks
A queue is to be implemented using two stacks and only a constant amount of extra memory. Which of the following correctly implements queue behavior with constant amortiz...
GO Classes
139
views
asked
Jul 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-221
python-&-dsa
goclasses-python-&-dsa-practice-questions
queue
stack
+
–
0
0 votes
1
1 answer
87
87 views
GO Classes DPP | GATE DA | Python & DSA | Rear Cost
Give the running time of each operation in the following queue class, where the item most recently inserted is at $\texttt{_a[0]}$.class Queue: def __init__(self): self._...
GO Classes
87
views
asked
Jul 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-221
python-&-dsa
goclasses-python-&-dsa-practice-questions
queue
+
–
0
0 votes
1
1 answer
86
86 views
GO Classes DPP | GATE DA | Python & DSA | Front Cost
Give the running time of each operation in the following queue class, where the item least recently inserted is at $\texttt{_a[0]}$.class Queue: def __init__(self): self....
GO Classes
86
views
asked
Jul 10
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-221
python-&-dsa
goclasses-python-&-dsa-practice-questions
queue
+
–
4
4 votes
1
1 answer
195
195 views
GO Classes DPP | GATE CS, DA | Data Structure | Queue Order
Suppose a client performs an intermixed sequence of $\texttt{enqueue}$ and $\texttt{dequeue}$ operations on a queue. The enqueue operations put the integers $0$ through $...
GO Classes
195
views
asked
Jul 10
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-221
goclasses-cs-dpp
goclasses-cs-dpp-day-319
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
queue
multiple-selects
+
–
2
2 votes
2
2 answers
154
154 views
GO Classes DPP | GATE DA | Python & DSA | Postfix Infix
Consider the following postfix expression:$\texttt{1 2 3 + 4 5 * * +}$Which of the following fully parenthesized infix expressions is equivalent to it?$\texttt{( 1 + ( ( ...
GO Classes
154
views
asked
Jul 9
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-220
python-&-dsa
goclasses-python-&-dsa-practice-questions
infix
postfix-expression
+
–
2
2 votes
2
2 answers
117
117 views
GO Classes DPP | GATE DA | Python & DSA | Prefix Postfix
Consider the following prefix expression:$\texttt{+ * 2 3 / 8 4}$Which of the following is its correct postfix form?$\texttt{2 3 * 8 4 / +}$$\texttt{+ * 2 3 / 8 4}$$\text...
GO Classes
117
views
asked
Jul 9
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-220
python-&-dsa
goclasses-python-&-dsa-practice-questions
prefix
+
–
2
2 votes
2
2 answers
140
140 views
GO Classes DPP | GATE DA | Python & DSA | Infix Prefix
For the expression:$\texttt{2 * 3 + 8 / 4}$Assume the expression tree has $\texttt{+}$ as the root, $\texttt{*}$ as the left subtree root, and $\texttt{/}$ as the right s...
GO Classes
140
views
asked
Jul 9
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-220
python-&-dsa
goclasses-python-&-dsa-practice-questions
infix-prefix
+
–
2
2 votes
2
2 answers
117
117 views
GO Classes DPP | GATE DA | Python & DSA | Postfix Value
Evaluate the following postfix expression:$\texttt{3 4 5 + *}$Enter the numerical value.
GO Classes
117
views
asked
Jul 9
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-220
python-&-dsa
goclasses-python-&-dsa-practice-questions
postfix-expression
numerical-answers
+
–
3
3 votes
2
2 answers
129
129 views
GO Classes DPP | GATE DA | Python & DSA | Infix Postfix
Convert the following fully parenthesized infix expression into postfix form:$\texttt{( 2 + ( ( 3 + 4 ) * ( 5 * 6 ) ) )}$Which of the following is the correct postfix exp...
GO Classes
129
views
asked
Jul 9
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-220
python-&-dsa
goclasses-python-&-dsa-practice-questions
infix
postfix-expression
+
–
1
1 vote
2
2 answers
133
133 views
GO Classes DPP | GATE DA | Python & DSA | Queue Reversal
Consider the following Python code fragment:stack = [] while len(q) 0: stack.append(q.pop(0)) while len(stack) 0: q.append(stack.pop())Here, $\texttt{q.pop(0)}$ removes...
GO Classes
133
views
asked
Jul 9
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-219
python-&-dsa
goclasses-python-&-dsa-practice-questions
stack
+
–
1
1 vote
2
2 answers
126
126 views
GO Classes DPP | GATE DA | Python & DSA | Binary Stack
Consider the following stack-based Python code:stack = [] n = 50 while n 0: stack.append(n % 2) n = n // 2 while len(stack) 0: print(stack.pop(), end="")What is printed...
GO Classes
126
views
asked
Jul 9
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-219
python-&-dsa
goclasses-python-&-dsa-practice-questions
stack
numerical-answers
+
–
5
5 votes
2
2 answers
245
245 views
GO Classes DPP | GATE CS, DA | Data Structure | Balanced Brackets
A stack is used to check whether parentheses, braces, and brackets are properly balanced.Consider the following two inputs:Input $1: \texttt{[()]\{\}\{[()()]()\}}$Input $...
GO Classes
245
views
asked
Jul 9
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-219
goclasses-cs-dpp
goclasses-cs-dpp-day-319
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
stack
+
–
6
6 votes
3
3 answers
320
320 views
GO Classes DPP | GATE CS, DA | Data Structure | Stack Permutation
Suppose an intermixed sequence of stack push and pop operations is performed. The push operations push the integers $0$ through $9$ in order. The pop operations print the...
GO Classes
320
views
asked
Jul 8
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-219
goclasses-cs-dpp
goclasses-cs-dpp-day-319
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
stack
multiple-selects
+
–
7
7 votes
3
3 answers
285
285 views
GO Classes DPP | GATE CS, DA | Data Structure | Stack Output
A stack client reads tokens from left to right. If the token is a word, it is pushed onto the stack. If the token is $\texttt{-}$, one item is popped and printed.Consider...
GO Classes
285
views
asked
Jul 8
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-219
goclasses-cs-dpp
goclasses-cs-dpp-day-319
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
stack
+
–
1
1 vote
2
2 answers
141
141 views
GO Classes DPP | GATE DA | Python & DSA | Growth Bounds
Which of the following expressions correctly describe $\mathrm{T}(n) = n^2 \log n$?Select all that apply.$\mathrm{O}(n^2)$$\mathrm{\Theta(n^2)}$$\mathrm{\Omega(n^2)}$$\ma...
GO Classes
141
views
asked
Jul 7
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-218
python-&-dsa
goclasses-python-&-dsa-practice-questions
time-complexity
+
–
Page:
« prev
1
...
6
7
8
9
10
11
12
13
14
15
16
...
48
next »