Question
Which of the following is NOT a greedy
algorithm?Solution
MergeSort is divide-and-conquer; greedy algorithms build a solution step by step making locally optimal choices.
- 'A' invested Rs. 9,000 in a business. After 5 months, 'A' reduced the investment by Rs. 2,000 and 'B' joined with Rs. 12,000. At the end of 20 months from ...
A, B and C invested in a business in the ratio 6:8:9. If B invested for a period whose numerical value is 112.5% of B’s investment but A and C inv...
Paras and Punit started a business by investing Rs. 18,000 and Rs. 24,000 respectively. Paras also worked as the active manager and for that he is entit...
A starts a business with Rs 12000. After 6 months B joins with Rs. 9000. After 2 years, what will be the ratio of the profit of A and B?
Atul and Brijesh started a business by investing Rs 16,000 and Rs 20,000 respectively. At the end of 4th month of the business, Chetan joins ...
- P and Q started a business with Rs. 6000 and Rs. 7500 respectively. Q remained in the business 4 months longer than P. If P received Rs. 1800 from the tota...
A and B invested Rs. 3600 and Rs. 4800 in a business. After 2 months, C joined with Rs. ‘x’. If A’s profit share in the total annual profit of Rs....
Raj invested Rs.36000 in a business. After 6 months, Rohan joins him with an investment of Rs.P. If at the end of the year the profit is Rs.52000 and pr...
X and Y started a business by investing Rs. 1600 and Rs. 2400 respectively. After 4 months, Y withdrew his money and Z joined with an investment of Rs. ...
A and B started a business by investing Rs.8000 and Rs.11000 respectively. After 6 months A withdrew 50% of his investment. If at the end of the year, p...