Question
Ashish started a business by investing Rs. 8400. Few
months later; Ramesh joined him by investing Rs. 9600 such that at the end of the year, the profit share of Ashish was 5% more than that of Ramesh. How many months after Ashish did Ramesh join the business?Solution
Let the number of months for which Ramesh invested his money = ‘Y’ months Ratio of profit shares of Ashish and Ramesh = (8400 × 12):(9600 × Y) = 100800:8000Y = 21:2Y Let profit share of Ramesh be Rs. ‘100a’ So, profit share of Ashish = 1.05 × 100a = Rs. ‘105a’ ATQ; (21/2Y) = (105a/100a) So, Y = 10 Therefore, Ramesh joined the business (12 – Y) = 2 months after Ashish.
Which algorithm is used for computing Max-Flow in a network?
Given the following code snippet, which operation is performed on the binary tree to produce the output: 4, 2, 5, 1, 3 ?
class Node {Â Â Â Â Â in...Which data structure is most suitable for implementing a priority queue with logarithmic time complexity for insertion and deletion?
Tarjan’s algorithm is used to find:
In C++, which access specifier makes members accessible only from within the class itself and from friend functions/classes?
What is the worst-case time complexity for inserting an element into a hash table that uses separate chaining for collision resolution?
In a graph, what is the maximum number of edges in a simple undirected graph with 'n' vertices?
Time complexity of heap sort is:
Which of the following is true about triggers in a relational database?
What is the primary purpose of an abstract class?