Question
Mahima’s expenditure and savings are in the ratio 5 :
3. Her income increases by 15%. Her expenditure also increases by 18%. By how many % does he saving increase?Solution
Let expense = 500 , savings = 300 & income = 800 So new expense = 500+ 18% of 500 = 500 + 90 = 590 & new income = 800 + 15% of 800 = 800 +120 = 920  So new savings = 920 – 590 = 330 ∴ Required % increase in savings= (330 – 300 ) /300× 100 = 30 /300×100% = 10%
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?