Question
The time complexity of building a heap from an unsorted
array of n elements is:Solution
Bottom-up heapify builds a heap in linear time because lower levels require fewer comparisons.
Two trains starts at the same time from Spain and France towards each other with a speed of 160km/hr and 190 km/hr. When they meet, the faster train cov...
A boat goes downstream for 44 km and immediately return. It took the boat twice as long as to make the return trip. If the speed of river flow were twic...
Ram is four times faster than Shyam, and Shyam is three times faster than Shiv. If Shiv covers a certain distance in 3.5 hours, how much time will Ram t...
A truck initially moving at 45 km/hr increased its speed by 9 km/hr after ‘w’ hours and continued for (w + 10) hours more. If...
A train 250 meters long crosses a platform in 20 seconds at a speed of 72 km/hr. How much time will it take to cross another train 300 meters long, runn...
The diameter of a wheel W is 63 cm. It completes 1000 rotations in 1 minute. Find the speed of the vehicle.
Bus X left Delhi for Jaipur at 4:00 am and Bus Y left Jaipur for Delhi at 6:00 am, while at 8:00 am the distance between both buses X and Y is (3T+2) km...
- Two individuals, Q and P, travel from point X to point Y at different speeds. Q takes 7 hours to complete the journey, while P takes 9 hours. The differenc...
A Bus moving at a speed of 's' km/h can pass a stationary person in 16 seconds and a tunnel Bridge that is 240 meters long in 28 seconds. Determine the ...
A Truck travel 300 km in 7 hours 30 minutes, if the speed of Bike 20% more than that of Truck, then find the time taken by Bike to travel 720 km.