Question
The sum of the monthly incomes of βAβ, βBβ and
βCβ is Rs. 55000 which is 4 times the monthly income of βCβ. If βAβ spends 60% of his income while βBβ spends 80% of his income and the sum of their savings is Rs. 15500, then find the savings of βAβ.Solution
Monthly income of βCβ = 55000/4 = Rs. 13750 Let the monthly income of βAβ be Rs. x Therefore, monthly income of βBβ = Rs. (41250 β x) According to the question, 0.4x + 0.20(41250 β x) = 15500 Or, 0.2x = 7250 x = 36250 Or, savings of βAβ = 0.40x = Rs. 14500
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?