Question
Which of the following data structures can be
efficiently implemented using a linked list?Solution
Linked lists are a common and efficient way to implement both stacks (LIFO) and queues (FIFO) because insertions and deletions at the ends (head/tail) can be performed in O(1) time.
- The monthly earnings of Farhan, Imran, and Junaid are in the ratio 16:12:10. Their savings follow the ratio 8:6:5. If Imran saves Rs. 21,000, which is 35% ...
A company has three departments: A, B, and C. The total monthly salary expenditure is ₹1,200,000. Department A spends 50% of the total salary, Departm...
Anju spends 16% of her monthly income on rent, 22% of it on groceries, 14% of it on children's education and 50% of the remaining on other items. If ₹...
- The average income of Tania, Sweta and Priya is Rs. 360. Sweta earns Rs. 30 more than Priya and Tania earns four times what Priya earns. Find Sweta’s inc...
Sana uses x% of her earnings on house rent, then spends 20% of the remaining on groceries, pays Rs. 9400 as miscellaneous bills, and saves Rs. 7240 from...
The respective ratio of monthly income of A to monthly income of B is 12:13, and A’s saving is (100/19)% more than B’s saving. Find the expenditure ...
The incomes of Abhinav and Bishnu are in the ratio 4:3, and their savings are in the ratio 3:1. Both spend Rs. 5,000 each. Determine the difference betw...
Determine Rohit's monthly salary if he allocated 40% of it to house rent, then 32% of the remaining amount on traveling. After accounting for his food e...
The ratio of monthly savings to monthly expenditure of Rohan is 5:6 respectively. If his monthly savings is increased by 40% while monthly expenditure i...
The income of 'E' is Rs. 50,000 while the income of 'F' is 20% more than that of 'E'. The ratio of expenditure and savings of 'E' is 2:3, respectively. ...