Question
What is the primary difference between a breadth-first
search (BFS) and a depth-first search (DFS) in graph traversal?Solution
BFS always finds the shortest path, while DFS does not guarantee finding the shortest path.
A shopkeeper has some toys. He sells two-third of the toys at a profit of 35% and the remaining toys at 10% loss. What is his overall percentage of profit?
A shopkeeper sold an article at a discount of 13%. If he had given a discount of 7% in place of 13%, then he would have earned Rs. 108 more. If the cost...
An article is sold for a Rs 657.90 after successive discounts of 15% and 10%. Find the marked price of the article?
Asmita owns two burgers, 'Veg' and 'Non-veg.' The Veg Burger was priced 140% above its cost, while the Non-Veg Burger was sold at a 40% loss. The total ...
The ratio of cost prices of two articles βAβ and βBβ is 1:3 respectively and the average cost price of articles βAβ and βBβ is Rs. 1200....
A shopkeeper marked an article Rs. 600 above its cost price and sold it after giving a discount of 20% and earned a profit of 30%. Find the cost price o...
The ratio of the cost price of an article to its selling price is 5:6. The marked price of the same item is Rs. 3,000 whereas the sum of the discount of...
'A' sold an article whose cost price is Rs. 'Y', at a profit of 25% to 'B'. 'B' marked the price of the article 25% above the price at which he bought i...
An article has a cost price of Rs. 8,500. It is marked up by 45% above its cost price and is sold after a discount of Rs. 1,700. What is the percentage ...
- After two successive discounts of x% each, an item was sold for Rs. 2025. The original marked price of the item was Rs. 3600. Find the discount percentage.