Question
A data analysis application needs to quickly find the
minimum or maximum value in a dynamically changing dataset. While a min/max heap could be used, how would a BST perform this task?Solution
In a BST, the minimum element is the leftmost node, and the maximum element is the rightmost node. Finding them involves traversing a path from the root, which takes O(h) time, where 'h' is the height of the tree.
Consider the following statements with respect to the information provided on the banks write off and NPA recovery by the Finance Ministry-
I.Ban...
Who has been selected as the new Chief Technologist of NASA?
When is the International Day of Persons with Disabilities (IDPD) observed every year?
- What is the name of the healthcare app launched by Jammu and Kashmir CM Omar Abdullah?
Which country does the film "Children of Nobody" represent, as it secured the Best Film award in the International Competition in Innovation Moving Imag...
For what period will the XVIFC recommendations apply, as per its submitted report?
Which three Indian cities, nominated under the Wetland City Accreditation (WCA) scheme, are seeking international recognition for their efforts to prote...
What proportion of global sea trade is represented by Europe, where the Adani Group plans to acquire ports?
Which of the following is the primary function of the 'e-Sakshya' app launched by Union Home Minister Amit Shah?
What was the share of UPI in India's total digital payments in 2024?