1,203 views
1 1 vote
In an AVL tree a single insertion can cause how many rotations at a particular time in worst case?

1 Answer

Best answer
1 1 vote
In worst case there will be only 2 rotation.  In best case 0 rotation.
selected by
Position:
Show:

Related questions

0 0 votes
1 1 answer
342
342 views
NIL DAS asked Nov 5, 2025
342 views
We have max-heap and min-heap where both size of n, what is time complexity to check both heaps are contains exactly same element?1.O(nlogn)2.O(n^2)3.O(n)4.O(logn)
0 0 votes
1 1 answer
613
613 views
deepak_8404 asked Oct 1, 2023
613 views
Consider a lower triangular matrix stored in row major order as p[-25 - - + 749][-25 - - - + 749] with base address = 6800, size of each element = 6 byte. Find the value ...
0 0 votes
1 1 answer
1.8k
1.8k views
jugnu1337 asked May 16, 2023
1,789 views
The total number of binary trees possible with height n - 2 having n nodes are?(2n - 5)^ 2n - 3 (2n - 7)^2n - 3(n - 3) ^2n - 2(2n - 7)^ 2n - 2
0 0 votes
1 answers 1 answer
783
783 views
Souvik33 asked Jan 29, 2023
783 views
Consider the following C code snippets, labeled as P1, P2 and P3, the output of P1 is “X”, of P2 is “Y” and of P3 as “Z”. What is the value of “X+Y+Z”P1#include <stdio.h ...