Question
Consider a min-heap represented as an array: [1, 3, 5,
7, 9]. If the element 2 is inserted into this min-heap, what will be the state of the heap array after the insertion and heapify-up operation?Solution
Correct Answer: C (Initial: [1, 3, 5, 7, 9]. Insert 2: [1, 3, 5, 7, 9, 2]. Heapify-up: 2 is smaller than its parent 5, swap: [1, 3, 2, 7, 9, 5]. 2 is smaller than its parent 3, swap: [1, 2, 3, 7, 9, 5]. 2 is not smaller than 1, stop.)
Currently, banks are required to make ____ per cent of their total lending towards priority sectors
Which of the following statement is correct about Surajkund Mela 2023?
I. It is organized every year in Faridabad, Haryana and is held during the...
SCO summit 2019 washeld in which country?Â
Which of the following countries is not a part of G 20 grouping of countries?
Asad Ali Khan was known for playing which of the following Indian instruments?
Who is the head of a Gram Panchayat in India?
What will be the median of the given data?
1, 1.1, 2.3, 0.1, 0.9, 5, 3.9, 2.5, 4.2, 4.6
Indian classical dance forms incorporate both tandava and ________, offering a balance of cosmic energies.
To increase fish consumption, which state inaugurated the 'Aqua Bazaar' and 'Aqua Hub' project on 21 November 2020?
The Financial Sector Assessment Program (FSAP), which provides comprehensive evaluations of a country’s financial system, is jointly conducted by whic...