Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged binary-tree
10
10 votes
1
1 answer
254
254 views
GO Classes DPP | GATE CS, DA | Data Structure | Binary Tree Traversals
A binary tree has:$1000$ nodes in the left subtree $100$ nodes in the right subtreeHow many nodes are processed before the root in preorder, inorder, and postorder traver...
GO Classes
254
views
asked
Jul 28
Data Structures
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-235
goclasses-cs-dpp
goclasses-cs-dpp-day-333
data-structures
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-ds-practice-questions
binary-tree
+
–
6
6 votes
1
1 answer
214
214 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
214
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
+
–
7
7 votes
1
1 answer
181
181 views
GO Classes DPP | GATE CS | Data Structure | Binary Tree Nodes
Which of the following functions correctly returns the total number of nodes in a binary tree rooted at $\texttt{t}$?int tree_size(TreeNode *t) { if (t == NULL) return 0;...
GO Classes
181
views
asked
Jul 13
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-321
data-structures
goclasses-ds-practice-questions
binary-tree
+
–
6
6 votes
1
1 answer
176
176 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
176
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
+
–
11
11 votes
1
1 answer
232
232 views
GO Classes DPP | GATE CS | Data Structures | Complete Binary Tree
Which of the following can be the number of nodes in a complete binary tree?$2$ $5$ $7$ $8$
GO Classes
232
views
asked
Jul 11
Data Structures
goclasses
goclasses-cs-dpp
goclasses-cs-dpp-day-320
data-structures
goclasses-ds-practice-questions
binary-tree
multiple-selects
+
–
6
6 votes
1
1 answer
197
197 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
197
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
224
224 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
224
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
186
186 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
186
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
184
184 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
184
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
+
–
2
2 votes
3
3 answers
224
224 views
UGC NET CSE | December 2025 | Part 2 | Question: 37
The inorder and preorder traversal of binary tree are $\mathrm{d}, \mathrm{b}, \mathrm{e}, \mathrm{a}, \mathrm{f}, \mathrm{c}, \mathrm{g}$ and $\mathrm{a}, \mathrm{b}, \m...
Shubham Sharma 2
224
views
asked
Apr 19
Data Structures
ugcnetcse-dec2025
data-structures
binary-tree
tree-traversal
+
–
7
7 votes
5
5 answers
3.2k
3.2k views
GATE CSE 2026 | Set 1 | Question: 23
The height of a binary tree is the number of edges in the longest path from the root to a leaf in the tree. The maximum possible height of a full binary tree with $23$ no...
gatecse
3.2k
views
asked
Feb 23
Algorithms
gatecse-2026-set1
algorithms
binary-tree
numerical-answers
one-mark
+
–
4
4 votes
1
1 answer
1.1k
1.1k views
GATE CSE 2026 | Set 1 | Data Structures | Memory Based | Question 41
The height of a binary tree is the number of edges in the longest path from the root to a leaf in the tree.What is the maximum possible height of a full binary tree with ...
GO Classes
1.1k
views
asked
Feb 12
Data Structures
goclasses
gate2026_cs_set1_memorybased
data-structures
binary-tree
numerical-answers
one-mark
+
–
1
1 vote
0
0 answers
235
235 views
Parse Tree - Self Doubt
Self DoubtSuppose there are about n tokens in a input string , each of the token is matched with some production rule, how many total production rules used in the parse t...
amanbadone0
235
views
asked
Nov 12, 2025
Compiler Design
parsing
binary-tree
compiler-design
data-structures
+
–
1
1 vote
1
1 answer
710
710 views
madeeasy topic wise test programming and data structures
consider a rooted binary tree with n nodes represented using pointers. What is the best possible upper bound to compute the number of such subtrees , which are full binar...
SoloSword
710
views
asked
Nov 4, 2025
Programming in C
data-structures
gate-preparation
binary-tree
binary-search-tree
programming-in-c
algorithms
+
–
0
0 votes
1
answers
1 answer
465
465 views
binary tree
answer is D if i delete root y then surely it will replace with s bec inordr succ. but i'm not getting how enqu. and deq. process pls explain that
ASUR
465
views
asked
Oct 31, 2025
Programming in C
binary-tree
data-structures
+
–
2
2 votes
1
1 answer
458
458 views
UPSC CBI 2025 | Assistant Programmer | Question: 9
The maximum and minimum size of an array needed to store a binary tree with $15$ nodes aremaximum : $32767$, minimum : $15$maximum : $16384$, minimum : $16$maximum : $327...
admin
458
views
asked
Oct 19, 2025
Data Structures
upsc-cbi-ap-2025
binary-tree
data-structures
+
–
1
1 vote
1
1 answer
327
327 views
UGC NET CSE | January 2025 | Part 2 | Question: 58
Considering above binary tree, what will be the inorder traversal$\text{BADCEGFH}$$\text{GHFEDCBA}$$\text{BACDEGFH}$$\text{GHFDEBCA}$
Shubham Sharma 2
327
views
asked
Sep 10, 2025
Data Structures
ugcnetcse-jan2025
binary-tree
data-structures
tree
algorithm-challenges
+
–
2
2 votes
1
1 answer
348
348 views
UGC NET CSE | January 2025 | Part 2 | Question: 60
Arrange the following steps of the Inorder Traversal of Binary Tree in the correct order.Visit the Left subtreeVisit the Root nodeVisit the Right subtreeStart traversing ...
Shubham Sharma 2
348
views
asked
Sep 10, 2025
Data Structures
ugcnetcse-jan2025
data-structures
binary-tree
tree
algorithm-design
+
–
1
1 vote
1
1 answer
402
402 views
CMI CS 2025 | Part B | Question: 6c
We have an array $A$ of $n$ numbers, where $n$ is a power of $2$.We build a full binary tree on top of the array $A.$ The elements of the array are leaves of the tree, nu...
jothee_new
402
views
asked
Sep 8, 2025
Data Structures
cmi2025
data-structures
array
binary-tree
time-complexity
algorithms
descriptive
+
–
1
1 vote
1
1 answer
296
296 views
CMI CS 2025 | Part B | Question: 6b
We have an array $A$ of $n$ numbers, where $n$ is a power of $2$.We build a full binary tree on top of the array $A.$ The elements of the array are leaves of the tree, nu...
jothee_new
296
views
asked
Sep 8, 2025
Data Structures
cmi2025
data-structures
array
binary-tree
time-complexity
algorithms
descriptive
+
–
2
2 votes
1
1 answer
197
197 views
NIELIT Scientific Assistant June 2025 | Question: 69
Which traversal method can be used to print the nodes of a binary tree in ascending order?Pre-order traversalPost-order traversalIn-order traversalLevel-order traversal
Shubham Sharma 2
197
views
asked
Jul 24, 2025
Data Structures
nielit-sta-2025
binary-tree
data-structures
tree
algorithm-design
+
–
0
0 votes
5
5 answers
643
643 views
Stack Size in Binary Tree (Algorithms)
Stack size in the case of a balanced Binary Tree is logn (Best Case) and in case of unbalanced Binary Tree is n (Worst Case), what is 'n' here?
Samayank_Goel
643
views
asked
Jun 23, 2025
Algorithms
data-structures
binary-tree
algorithms
+
–
2
2 votes
1
1 answer
574
574 views
CMI CS 2025 | Part B | Question: 6a
We have an array $A$ of $n$ numbers, where $n$ is a power of $2$.We build a full binary tree on top of the array $A.$ The elements of the array are leaves of the tree, nu...
Shubham Sharma 2
574
views
asked
Jun 20, 2025
Data Structures
cmi2025
data-structures
array
binary-tree
time-complexity
algorithms
descriptive
+
–
Page:
1
2
3
4
5
6
...
14
next »