Question
The present average age of X, Y, and Z is 45 years. 8
years ago, the average age of X and Y was 38 years. What is the present age of Z?Solution
Let X, Y, and Z be P, Q, and R years old respectively. (presently) According to the question, (P + Q + R) ÷ 3 = 45  (P + Q + R) = 135     .... (1) {(P - 8) + (Q - 8)} ÷ 2 = 38  P + Q - 16 = 76  P + Q = 76 + 16  P + Q = 92     .... (2) Putting the value from (2) to (1), The present age of Z is 43 years.
In a binary tree, if the number of leaf nodes is L, what is the number of nodes with two children?
Which algorithm is best suited to find the shortest path in a graph with negative edge weights but no negative cycles?
What is the time complexity of inserting an element in a heap?
Which traversal method in a binary search tree retrieves nodes in sorted order?
Worst case is the worst case time complexity of Prim’s algorithm if adjacency matrix is used?
A sorting algorithm is considered "stable" if it maintains the relative order of records with equal keys. Which of the following algorithms is generally...
Which of the following protocols is most commonly used in IoT devices to enable communication between smart devices?
Which sorting algorithm has an average-case time complexity of O(n log n) and is known for its efficiency, often using a divide-and-conquer approach?
Which data structure is used for implementing recursive function calls?
Which of the following algorithms is best suited for finding the shortest path in a weighted graph where some edges may have negative weights but no neg...