Question
Which of the following is true for the time complexity
of binary search?Solution
Binary search divides the search space in half each time, giving a logarithmic time complexity.
1440 metres long train crosses a man who is moving in the same direction with a certain speed in 32 seconds. If the same train can cross a pole in 24 se...
1440 metres long train crosses a man who is moving in the same direction with a certain speed in 30 seconds. If the same train can cross a pole in 24 se...
1600 metres long train crosses a man who is moving in the same direction with a certain speed in 25 seconds. If the same train can cross a pole in 20 se...
Two trains travelling in the same direction at 80 and 44 km/ph completely pass off another in 1 minute. If the length of the first train is 375 m, what ...
How many seconds will a train 66 m in length, travelling at the rate of 43 km an hour, take to pass another train 86 m long, proceeding in the same dire...
Two trains are running on parallel lines in the same direction at the speed of 75 km/h and 39 km/h respectively. The faster train crosses a man in the s...
A person travels a distance of 60 km, some distance he travels by bus and rest of the journey by walking, then he takes 4 hours and 20 minutes. If he ha...
A train crosses a 300-metre-long bridge in 20 seconds, and the same train crosses a tunnel twice the length of the bridge in 35 seconds. Find the speed ...
Two express trains depart from city X and city Y at the same time, approaching one another. Train X moves at 90 km/h and Train Y at 60 km/h. They cross ...
The distance between stations X and Y is 672 km. A train leaves X at 9 a.m. at 64 km/h. Another train leaves Y at 10:30 a.m. towards X at 96 km/h. When ...