Question
You are building a system that needs to process tasks in
order of their priority. Which data structure would be most appropriate?Solution
A Priority Queue is specifically designed to store elements with associated priorities and allows efficient retrieval of the element with the highest (or lowest) priority.
- Priya invests a sum of money at an annual compound interest rate of 8%. After 4 years, the interest accumulated is Rs. 1120. If she increases her initial i...
The speeds of boats A and B in still water are in the ratio 5:3. The upstream speed of A is the same as the downstream speed of B. If the stream flows a...
- Rs. 3,000 becomes Rs. 4,200 in 10 years at simple interest of r% p.a. If Rs. 6,000 is invested at 0.5r% p.a. for 6 years, what will be the interest amount?
What is the interest earned when Rs. 4000 is invested for 2 years in a scheme which offers compound interest (compounded every 12 months) of 25% p.a.
Rs. 10000 when invested at simple interest of r% p.a. amounts to Rs. 12000 in 24 months. If the same sum had been invested for 1 year at compound intere...
Find the rate of simple interest at which Rs. 6000 should be invested for 2 years so that the interest earned will be same as the interest received when...
'P' invested Rs. 2,00,000 at compound interest of ___% p.a., compounded once every 4 months. If he kept the amount invested for 12 months, then interest...
Akshay invested Rs. 2240 in two schemes P and Q in the respective ratio of 9:7. Scheme P and Q are offering simple interest at the rate of 10% per annum...
A man deposited Rs. 7000 at 10% compound interest, compounded annually while Rs. 6500 at 13% simple interest per annum. What will be the difference betw...
A man invested a certain amount of sum at 12.5% per annum simple interest and earned an interest of Rs.2400 after 3 years. If the same amount is investe...