Question
lsquo;Arsquo; alone can complete a work in 50 days while
lsquo;Arsquo; and lsquo;Brsquo; together can complete the same work in 40 days. How much percentage of the work, lsquo;Brsquo; alone can complete in 66 days?Solution
Let the total work = L.C.M of 50 and 40 = 200 units Then, efficiency of lsquo;Arsquo; alone = 200 divide; 50 = 4 units/day Combined efficiency of lsquo;Arsquo; and lsquo;Brsquo; = 200 divide; 40 = 5 units/day So, efficiency of lsquo;Brsquo; = 5 ndash; 4 = 1 units/day So, work done by lsquo;Brsquo; alone in 66 days = 1 times; 66 = 66 units So, percentage of work completed by lsquo;Brsquo; = (66 divide; 200) times; 100 = 33%
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?