Software Engineering & Coding - Data Structures & Algorithms (DSA)

Trees & Binary Search Trees question bank (Trees, Graphs & Algorithmic Paradigms)

Practice 5,056 free Software Engineering & Coding - Data Structures & Algorithms (DSA) Trees, Graphs & Algorithmic Paradigms - Trees & Binary Search Trees questions with answers and step-by-step solutions.

Q1.
[Data Structures & Algorithms - Technical Interview #2] What is the worst-case time complexity of QuickSort when the partition element is repeatedly chosen as the minimum or maximum element?

(A)
O(log N)
(B)
O(N log N)
(C)
O(N^2)
(D)
O(N)
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Q2.
[Quantitative Aptitude - Technical Interview #4] A pipe can fill a reservoir in 12 hours, while a leak at the bottom can empty it in 20 hours. If both operate simultaneously, in how many hours will the reservoir be completely filled?

(A)
30 hours
(B)
24 hours
(C)
32 hours
(D)
16 hours
Show answer & solution
Verified Answer & Solution Locked
Sign in to your free student account to reveal verified answers, instant hints, and detailed explanations.
Sign in to view
Protected Questions

Unlock All 2527 Questions in Trees & Binary Search Trees

Log in or sign up free to access every question with complete solutions, create chapter practice tests, and track your performance.

Sign up free to access all 2,527 questions

Unlock every Trees & Binary Search Trees question, generate papers, and practice at your own pace.