Question
A bag contains 20 rupees note, 50 rupees note and 100
rupees note in the ratio 5:7:2. If the total amount in the bag is Rs 1,300, find the number of 50 rupees note.Solution
Ratio of values of the notes = 5 x 20 : 7 x 50 : 2 x 100 = 2:7:4 Value of 20 rupees note = 1300 x 2/13 = Rs. 200 Value of 50 rupees note = 1300 x 7/13 = Rs. 700 Value of 100 rupees note = 1300 x 4/13 = Rs. 400 Number of 20 rupees note = 200/20 = 10 Number of 50 rupees note = 700/50 = 14 Number of 100 rupees note = 400/100 = 4
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?