Question
Two cars start from a place with a speed of 55 km/hr at
an interval of 15 minutes. What is the speed of a man coming from the opposite direction towards the place if he meets the cars at an interval of 11 minutes?Solution
Distance covered in 15 minutes at 55 km/hr = 55 x (15/60) Distance covered in 11 minutes at (55 + x) km/hr = (11/60) x (55 + x) Now, Distance covered in 15 minutes at 55 km/hr = Distance covered in 11 minutes at (55 + x) km/hr ⇒ 55 x (15/60) = (11/60) x (55 + x) ⇒ 825 x 12 = 605 + 11x ⇒ 825 = 605 + 11x ⇒ 11x = 825 - 605 = 220 ⇒ x = 20 km/hr
Which algorithm is used for computing Max-Flow in a network?
Given the following code snippet, which operation is performed on the binary tree to produce the output: 4, 2, 5, 1, 3 ?
class Node {Â Â Â Â Â in...Which data structure is most suitable for implementing a priority queue with logarithmic time complexity for insertion and deletion?
Tarjan’s algorithm is used to find:
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
Time complexity of heap sort is:
Which of the following is true about triggers in a relational database?
What is the primary purpose of an abstract class?