Question
660 ml of a mixture contains milk and water in the ratio
2:3. If `x` ml of milk and `(x + 80)` ml of water are added, the final ratio becomes 7:9. Find the value of `x`.Solution
Milk = (2/5) × 660 = 264 ml
Water = (3/5) × 660 = 396 ml
(264 + x)/(396 + x + 80) = 7/9
9(264 + x) = 7(476 + x)
2376 + 9x = 3332 + 7x
2x = 956
⇒ x = 478
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?