Question
At present, the total of ages of Arjun and Ravi is 60
years. Two years ago, the ratio of their ages was 3:4. What is the current age of Ravi?Solution
ATQ,
Let the present age of Arjun = y years
Then, present age of Ravi = (60 - y) years
According to the question,
(y - 2):(60 - y - 2) = 3:4
β 4(y - 2) = 3(58 - y)
β 4y - 8 = 174 - 3y
β 7y = 182
β y = 182 Γ· 7 = 26
So, present age of Ravi = 60 - 26 = 34 years
What is the time complexity of searching an element in a balanced binary search tree (BST) with nnn nodes?
In a data warehousing environment, what is the primary purpose of an OLAP (Online Analytical Processing) cube?
Max-Flow Min-Cut theorem states:
In system design, what is the primary purpose of a feasibility study?
A complete binary tree has 127 nodes. What is its height (assuming the root is at level 0)?
Deletion in Red-Black Trees maintains balance using:
Fibonacci heaps support which operation in O(1) amortized time?
Which of the following is a primary advantage of using a star schema in a data warehouse design?
Which of the following is an effective countermeasure against Cross-Site Scripting (XSS) attacks in a web application?
A programmer is implementing a data analysis tool that frequently needs to append elements to a collection. If an array is used, what is a potential per...