Question
Two men A and B started a job in which A was thrice as
good as B and therefore took 60 days less than B to finish the job. How many days will they take to finish the job, if they start working together?Solution
            A              B Efficiency     3        :      1 Time              1       :      3 Difference in time = 60 days ⇒  3x - x = 60 ⇒  x = 30 days So, Total Work = 30 × 3 = 90 A and B can do work together in days = 90/4 = 22.5 days ∴  The required answer is 22.5 days.
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?