Q7
Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of nodes?
Show answer without attempting
Answer: C
GATE CS · 6 questions
6 Programming and Data Structures questions from GATE CS papers (2013), each with the official answer key. Answer any question right here and it is marked straight away, or practise them one at a time.
Answer: C
int f (int &x, int c) {
c = c - 1;
if (c==0) return 1;
x = x + 1;
return f(x,c) * x;
}Answer: Marks to all
Answer: D
MultiDequeue(Q){
m = k
while (Q is not empty) and (m > 0) {
Dequeue(Q)
m = m – 1
}
}Answer: A
Answer: B
Answer: C
0/60 correct0 marks