Question
161 litres mixture of milk and water is mixed in an
empty container in the ratio 5:2, respectively. If 14 litres of mixture is replaced with 14 litres of water then what will the ratio of milk to water in the resultant mixture?Solution
Initially, amount of milk = (5/7) × 161 = 115 litres Amount of water = (2/7) × 161 = 46 litres 14 litres of mixture is replaced. Amount of milk replaced = 14 x (5/7) = 10 Amount of water replaced = 14 x (2/7) = 4 So, required ratio = (115 – 10):(46 – 4 + 14) = 105:56 = 15:8
Which of the following is true for a min-heap?
The Master Theorem gives time complexity for recurrences of the form:
Which of the following sorting algorithms has the best worst-case time complexity?
In mobile computing, what is the main feature of pervasive computing?
In a Min-Heap, the root node is:
What is the time complexity of searching in a balanced binary search tree?
Which data structure is used for implementing recursive function calls?
Which file structure is best suited for handling large datasets and ensuring fast access in C, C++, Java, or Python?    Â
Which algorithm uses a “divide and conquer” strategy?
Which data structure is used in BFS (Breadth-First Search)?