Question
A is cycling at an average speed of 15 km/hr such that
he can reach a certain point at 12 noon. If he cycles at 30 km/hr, then he will reach the destination at 10 a.m. At what speed he should cycle to reach the destination at 11 a.m.Solution
ATQ, A reaches the destination at 12 noon at 15 km/hr and at 10 a.m. at 30 km/hr. Distance = 60 km (calculated using time difference of 2 hours). To reach at 11 a.m., A needs to take 3 hours. Required speed = (60 km/3hr) = 20 km/hr A should cycle at 20 km/hr to reach at 11 a.m.
Which tree traversal gives nodes in non-decreasing order for a BST?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
In a binary tree, what is the maximum number of children a node can have?
Which sorting algorithm has O(n log n) average case?
Which of the following data structures is best suited for implementing a "undo" mechanism in a text editor?
Which of the following best describes Abstraction in Object-Oriented Programming (OOP)?
What does Big O notation primarily describe?
A stack follows which principle for data access?
Which data structure uses LIFO (Last In, First Out) principle?
What is the difference between 'BFS' (Breadth-First Search) and 'DFS' (Depth-First Search) in graph traversal?