Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions and answers in DS
28.7k
views
12
answers
75
votes
GATE CSE 1994 | Question: 1.11
In a compact single dimensional array representation for lower triangular matrices (i.e all the elements above the diagonal are zero) of size $n \times n$, non-zero eleme...
suraj_soni
28.7k
views
suraj_soni
answered
May 20
DS
gate1994
data-structures
array
normal
+
–
5.2k
views
3
answers
26
votes
GATE CSE 1993 | Question: 12
The following Pascal program segments finds the largest number in a two-dimensional integer array $A[0\dots n-1, 0\dots n-1]$ using a single loop. Fill up the boxes to co...
Debargha5943
5.2k
views
Debargha5943
answered
May 15
DS
gate1993
data-structures
array
normal
descriptive
+
–
235
views
1
answers
1
votes
Arrays
Consider an integer upper triangular 2D array arr[–8 to +7][–8 to +7] having base address 1000. If the size of the integer is 4 bytes, the address of the element pres...
Nirmal7488
235
views
Nirmal7488
answered
May 8
DS
array
data-structures
+
–
9.7k
views
5
answers
19
votes
GATE CSE 2022 | Question: 5
Consider the problem of reversing a singly linked list. To take an example, given the linked list below,the reversed linked list should look likeWhich one of the followin...
yudhistar
9.7k
views
yudhistar
answered
May 6
DS
gatecse-2022
data-structures
linked-list
1-mark
+
–
107
views
0
answers
0
votes
university assignment question
The array-based stack throws an exception when the array’s capacity has been reached. Consider the following alternative : create a larger array, using the resize metho...
꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂
107
views
꧁༒☬ĿọŗԀ 🆂🅷🅸🆅🅰☬༒꧂
asked
May 5
DS
data-structures
array
time-complexity
+
–
17.7k
views
5
answers
67
votes
GATE CSE 2006 | Question: 13
A scheme for storing binary trees in an array $X$ is as follows. Indexing of $X$ starts at $1$ instead of $0$. the root is stored at $X $. For a node stored at $X[i]$, th...
snehasish
17.7k
views
snehasish
answered
May 3
DS
gatecse-2006
data-structures
binary-tree
normal
+
–
1.0k
views
1
answers
3
votes
GO Classes 2023 | IIITH Mock Test 1 | Question: 14
Consider a perfect binary tree with $\mathrm{n}$ nodes and $\mathrm{h}$ height. A tree is perfect when all levels of the tree are completely full. Let root is at depth $0...
Poojan Sheth
1.0k
views
Poojan Sheth
answered
Apr 26
DS
goclasses2023-iiith-mock-1
goclasses
data-structures
tree
binary-tree
1-mark
+
–
609
views
2
answers
1
votes
DRDO CSE 2022 Paper 1 | Question: 29
Five items $\text{A, B, C, D, E}$ are pushed onto a stack, one after other starting from item $\mathrm{A}$. The stack is then popped by three items, and each item is inse...
soumya24
609
views
soumya24
answered
Apr 22
DS
drdocse-2022-paper1
data-structures
stack
5-marks
descriptive
+
–
316
views
2
answers
1
votes
DRDO CSE 2022 Paper 1 | Question: 28
If the maximum height of a binary tree is $\mathrm{N},$ then how many number of nodes will there be?
C1h2a3i4t5
316
views
C1h2a3i4t5
answered
Apr 8
DS
drdocse-2022-paper1
data-structures
binary-tree
4-marks
descriptive
+
–
1.8k
views
3
answers
1
votes
UGC NET CSE | December 2004 | Part 2 | Question: 22
Suppose we are implementing quadratic probing with a Hash function, Hash $(y)=X$ mode $100$. If an element with key $4594$ is inserted and the first three locations attem...
ajayraho
1.8k
views
ajayraho
answered
Mar 11
DS
ugcnetcse-dec2004-paper2
+
–
372
views
1
answers
1
votes
DRDO CSE 2022 Paper 1 | Question: 26 (b)
Provide the correct data structures for the following:Asynchronous data transfer and accessing shared resource involve _________.
mishraamulya
372
views
mishraamulya
answered
Mar 10
DS
drdocse-2022-paper1
data-structures
1-mark
fill-in-the-blanks
+
–
997
views
2
answers
1
votes
GATE DS&AI 2024 | Question: 42
Let $H, I, L$, and $N$ represent height, number of internal nodes, number of leaf nodes, and the total number of nodes respectively in a rooted binary tree...
naveendewangan
997
views
naveendewangan
answered
Feb 29
DS
gate-ds-ai-2024
data-structures
binary-tree
+
–
7.6k
views
2
answers
24
votes
GATE CSE 2006 | Question: 77
Statement for Linked Answer Questions 76 & 77:A $3$-ary max heap is like a binary max heap, but instead of $2$ children, nodes have $3$ children. A $3$-ary heap can be re...
Maddy_dahiphale
7.6k
views
Maddy_dahiphale
answered
Feb 22
DS
gatecse-2006
data-structures
binary-heap
normal
+
–
2.9k
views
2
answers
0
votes
GATE CSE 2024 | Set 1 | Question: 33
Consider a binary min-heap containing $105$ distinct elements. Let $k$ be the index (in the underlying array) of the maximum element stored in the heap. The number of pos...
Swarnava Bose
2.9k
views
Swarnava Bose
answered
Feb 18
DS
gatecse2024-set1
data-structures
binary-heap
+
–
943
views
1
answers
1
votes
GATE DS&AI 2024 | Question: 11
Consider performing uniform hashing on an open address hash table with load factor $\alpha=\frac{n}{m}<1$, where $n$ elements are stored in the table wi...
liontig37
943
views
liontig37
answered
Feb 17
DS
gate-ds-ai-2024
data-structures
hashing
uniform-hashing
+
–
892
views
2
answers
0
votes
GATE DS&AI 2024 | Question: 6
Match the items in Column $1$ with the items in Column $2$ in the following table:\begin{array}{|ll|ll|}\hline & \text{Column 1} & & \text{Column 2} \\\...
Hira Thakur
892
views
Hira Thakur
answered
Feb 17
DS
gate-ds-ai-2024
data-structures
match-the-following
+
–
2.4k
views
1
answers
1
votes
GATE CSE 2024 | Set 2 | Question: 38
Let $\mathrm{S} 1$ and $\mathrm{S} 2$ be two stacks. $\mathrm{S} 1$ has capacity of $4$ elements. $\mathrm{S} 2$ has capacity of $2$ elements. $\text{S1}$ ...
Hira Thakur
2.4k
views
Hira Thakur
answered
Feb 17
DS
gatecse2024-set2
data-structures
stack
multiple-selects
+
–
1.2k
views
1
answers
0
votes
GATE DS&AI 2024 | Question: 18
Consider the following tree traversals on a full binary tree:PreorderInorderPostorderWhich of the following traversal options is/are sufficient to uniqu...
Anmol Verma
1.2k
views
Anmol Verma
answered
Feb 17
DS
gate-ds-ai-2024
data-structures
binary-tree
+
–
814
views
1
answers
0
votes
GATE DS&AI 2024 | Question: 22
The fundamental operations in a double-ended queue $D$ are: insertFirst (e) - Insert a new element $e$ at the beginning of $D$. insertLast (e) - Insert a new element $e$ ...
NarutoUzumaki
814
views
NarutoUzumaki
answered
Feb 16
DS
gate-ds-ai-2024
numerical-answers
data-structures
+
–
2.1k
views
1
answers
2
votes
GATE CSE 2024 | Set 2 | Question: 29
You are given a set $V$ of distinct integers. A binary search tree $T$ is created by inserting all elements of $V$ one by one, starting with an empty tr...
supreetshukla
2.1k
views
supreetshukla
answered
Feb 16
DS
gatecse2024-set2
binary-search-tree
+
–
430
views
2
answers
2
votes
Memory Based GATE DA 2024 | Question: 23
Consider a binary tree. Among the following traversal combinations, which of them can uniquely construct the tree?Inorder + PreorderPreorder + PostorderOnly InorderInorde...
hacker24
430
views
hacker24
answered
Feb 14
DS
gate2024-da-memory-based
goclasses
data-structures
binary-tree
tree-traversal
+
–
262
views
1
answers
0
votes
Memory Based GATE DA 2024 | Question: 24
Consider a doubly linked list with the following operations:- Insert First (\texttt{InsertFirst})\\- Insert Last (\texttt{InsertLast})\\- Remove First (\texttt{RemoveFirs...
hacker24
262
views
hacker24
answered
Feb 14
DS
gate2024-da-memory-based
goclasses
data-structures
linked-list
numerical-answers
+
–
242
views
1
answers
0
votes
Memory Based GATE DA 2024 | Question: 40
Match the following:$$\begin{array}{|p{0.3\linewidth}|p{0.6\linewidth}|} \hline \textbf{Technique} & \textbf{Characteristic} \\ \hline FIFO & ...
TusharRana
242
views
TusharRana
answered
Feb 13
DS
gate2024-da-memory-based
goclasses
data-structures
stack
+
–
9.3k
views
3
answers
5
votes
ISRO2016-30
A complete binary tree with $n$ non-leaf nodes contains$\log_{2}n$ nodes$n+1$ nodes$2n$ nodes$2n+1$ nodes
Maddy_dahiphale
9.3k
views
Maddy_dahiphale
answered
Feb 11
DS
data-structures
binary-tree
isro2016
+
–
467
views
1
answers
4
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 34
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 ...
Priyotosh2001
467
views
Priyotosh2001
answered
Feb 7
DS
goclasses2024-mockgate-14
data-structures
queue
linked-list
1-mark
+
–
589
views
2
answers
5
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 44
Let $B$ be a binary search tree (BST) with eight nodes filled with the following set of eight integer keys $A=\{10,2,5,3,20,15,9,22\}$. The order in which these keys were...
krishnajsw
589
views
krishnajsw
answered
Feb 6
DS
goclasses2024-mockgate-14
numerical-answers
data-structures
binary-search-tree
2-marks
+
–
619
views
1
answers
7
votes
GO Classes Test Series 2024 | Mock GATE | Test 14 | Question: 45
Consider a stack whose elements are unsigned integers and support the following operations:PUSH a: Pushes the element 'a' onto the stack.ADD: Adds the two topmost element...
GO Classes
619
views
GO Classes
answered
Feb 5
DS
goclasses2024-mockgate-14
numerical-answers
data-structures
stack
2-marks
+
–
266
views
0
answers
0
votes
Memory Based GATE DA 2024 | Question: 55
Data Structure question: Binary tree question having four options involving no of internal nodes, leaf nodes, height etc.
GO Classes
266
views
GO Classes
asked
Feb 4
DS
gate2024-da-memory-based
goclasses
data-structures
binary-tree
+
–
911
views
3
answers
7
votes
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 40
You are given a complete binary tree (each level must be full except the last) on $n$ vertices. Each vertex $v$ is labeled by an integer value $x_v$. Say that a vertex is...
Shreyas16
911
views
Shreyas16
answered
Jan 31
DS
goclasses2024-mockgate-13
goclasses
data-structures
binary-tree
time-complexity
2-marks
+
–
519
views
2
answers
4
votes
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 37
Consider the null-terminated linked list of four integers $\textsf{1->2->3->4->NULL},$ and the variable 'list' points to the head of the linked list. Upon running the pro...
GauravRajpurohit
519
views
GauravRajpurohit
answered
Jan 29
DS
goclasses2024-mockgate-13
goclasses
data-structures
linked-list
2-marks
+
–
463
views
1
answers
3
votes
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 36
Let $\mathrm{T}$ be the smallest AVL tree of height $h$. How many nodes does it have, if the smallest AVL tree of height $h-2$ has $m$ nodes and the smallest AVL tree of ...
thecoderyabham
463
views
thecoderyabham
answered
Jan 28
DS
goclasses2024-mockgate-13
goclasses
data-structures
avl-tree
2-marks
+
–
537
views
1
answers
6
votes
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 16
Suppose we constructed the binary search tree shown by starting with an empty tree and inserting one element at a time from an input sequence, without any rotations or ot...
GO Classes
537
views
GO Classes
answered
Jan 28
DS
goclasses2024-mockgate-13
goclasses
data-structures
binary-search-tree
1-mark
+
–
587
views
1
answers
3
votes
GO Classes Test Series 2024 | Mock GATE | Test 13 | Question: 17
Suppose that a binary min-heap stores six elements with priorities $10,20,30,40,50$, and $60$ in its array $\text{A}.$ What is the largest of these items that could be st...
GO Classes
587
views
GO Classes
answered
Jan 28
DS
goclasses2024-mockgate-13
goclasses
numerical-answers
data-structures
binary-heap
1-mark
+
–
428
views
1
answers
3
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 3
The Euclidean algorithm is used to find the greatest common divisor $(\mathrm{gcd})$ of two positive integers $\mathrm{a}$ and $\mathrm{b}$.input(a) input(b) while b>0 be...
GO Classes
428
views
GO Classes
asked
Jan 21
DS
goclasses2024-mockgate-12
goclasses
data-structures
linked-list
1-mark
+
–
421
views
1
answers
2
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 4
What are the sequence of popped-out values if the sequence of operations - $\textsf{push(1), push(2), pop, push(1), push(2), pop, pop, pop, push(2), pop}$ are performed o...
GO Classes
421
views
GO Classes
asked
Jan 21
DS
goclasses2024-mockgate-12
goclasses
data-structures
stack
1-mark
easy
+
–
499
views
1
answers
2
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 31
How many binary trees with $3$ nodes, $\text{A, B},$ and $\text{C}$ when traversed in post-order will give the sequence $\text{A, B, C}?$ (It is NOT a search tree)
GO Classes
499
views
GO Classes
asked
Jan 21
DS
goclasses2024-mockgate-12
goclasses
numerical-answers
data-structures
binary-tree
tree-traversal
2-marks
+
–
502
views
2
answers
4
votes
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 32
The in-order traversal of a binary tree is $\textsf{HFIEJGZ},$ and the post-order traversal of the same tree is $\textsf{HIFJZGE}.$ What will be the total number of nodes...
GO Classes
502
views
GO Classes
asked
Jan 21
DS
goclasses2024-mockgate-12
goclasses
numerical-answers
data-structures
binary-tree
tree-traversal
2-marks
+
–
334
views
3
answers
0
votes
Made Easy Test Series
In a max heap of n elements, the time complexity to find 10th largest element is:a)Θ(n log n)b)Θ(n)c)Θ(1)d)Θ(log n) I personally think it should be Θ(n), as the 10th...
Mrityudoot
334
views
Mrityudoot
asked
Jan 20
DS
made-easy-test-series
data-structures
+
–
615
views
0
answers
6
votes
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 52
Consider the following binary heap –Suppose the last operation you performed in the binary heap above was inserting the key $x$.What are the possible values of $x?$$20$...
GO Classes
615
views
GO Classes
asked
Jan 13
DS
goclasses2024-mockgate-11
goclasses
data-structures
binary-heap
multiple-selects
2-marks
+
–
400
views
1
answers
2
votes
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 53
Consider the linked list initially having values $1, 2, 2, 8, 6, 2, 2,$ and let the head be the pointer to the first node of the linked list.Which of the following option...
GO Classes
400
views
GO Classes
asked
Jan 13
DS
goclasses2024-mockgate-11
goclasses
data-structures
linked-list
2-marks
+
–
To see more, click for all the
questions in this category
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register