Question
A and B have monthly incomes in the ratio of 6:5,
respectively. Both save the same amount each month. A's monthly expenses are five times B's monthly savings. Additionally, B's monthly expenses are Rs. 3000 less than A's. Determine the monthly income of A.Solution
Let the monthly savings of A and B be Rs. βxβ each. So, the monthly expenditure of A = Rs. 5x Monthly expenditure of B = Rs. (5x β 3000) According to question; (x + 5x)/(x + 5x β 3000) = 6/5 30x = 36x β 18000 6x = 18000 x = 3000 So, the monthly income of A = 6 Γ 3000 = Rs. 18000
Which data structure is typically used to implement Breadth-First Search (BFS)?
In a binary tree, if the number of leaf nodes is L, what is the number of nodes with two children?
Which of the following sorting algorithms is a non-comparison-based sort?
Dynamic Programming is useful when a problem has:
Recursive problems are implemented by
In a binary search tree (BST), what is true about the left child of a node?
Which is not true about minimum spanning tree?
In Data Communication, what protocol is used to ensure reliable transmission of data over a network?
A unique piece of information that is used in encryption.
What is the space complexity of Bubble Sort?