Question
Rs. 2,400 is distributed among 'X', 'Y', and 'Z' in the
ratio 6:7:5, respectively. Find the difference between the amount received by 'X' and 'Y' together and 'Y' and 'Z' together.Solution
ATQ,
Let the amount received by 'X', 'Y', and 'Z' be Rs. 6x, Rs. 7x, and Rs. 5x, respectively. Amount received by 'X' and 'Y' = 2400 × (6x + 7x) / (6x + 7x + 5x) = Rs. 1800 Amount received by 'Y' and 'Z' = 2400 × (7x + 5x) / (6x + 7x + 5x) = Rs. 1600 Required difference = 1800 - 1600 = Rs. 200
Which data structure is used in recursion?
An algorithm with a time complexity of O(log n) means that its execution time:
Which of the following is a key principle of the SOLID design principles that focuses on ensuring a class has only one reason to change?
What is the time complexity of searching an element in a balanced binary search tree (BST) with nnn nodes?
What is the time complexity of searching for an element in a sorted array using binary search?
 Which graph traversal algorithm uses a queue to explore vertices in a layer-by-layer fashion?
Which data structure is used for undo operations in text editors?
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
Given a singly linked list with 'n' nodes, what is the time complexity to delete the last node?
A binary search tree (BST) property states that for any given node: