Solution
Man(M) paid Rs. 1000 to the shopkeeper. He has bought products for only Rs. 200. So the shopkeeper returns him Rs. 800. Now, 1000 paid to the shopkeeper was a fake note. Hence, he gets his 1000 back from the man. So, the shopkeeper suffered no loss as the fake amount which he received was all returned to him.
Check out this problem - Check If A String Is Palindrome
Frequently Asked Questions
Why are puzzles asked in interviews?
Puzzles are asked in interviews to check for the analytical and lateral reasoning ability of students. It also involves the problem-solving skills of the students.
A race track has five lanes. You are to find the 3 fastest horses out of a total of 25. How many races would have to be conducted to find the three fastest horses?
First, we have to conduct 5 races taking 5 horses each, then we need to convert another 1 race for all winners. This race decides the top 3 horses.
What are some of the important puzzles asked in the interview?
Some puzzles asked in the interview are: Ant and Triangle Problem, Crossing the Bridge Puzzle, Burning Rope Problem, Bag of Coins Puzzle, Horses on a Race Track Puzzle.
Conclusion
This article taught us how to solve the spider’s web puzzle.
We hope you could easily take away all critical and conceptual techniques by walking over the given examples.
Now, we strongly recommend you to understand the other related concepts in puzzles and enhance your learning. You can get a wide range of topics similar to this on the interview puzzle.
You can refer to our Guided Path on Coding Ninjas Studio to upskill yourself in Data Structures and Algorithms, Competitive Programming, JavaScript, SQL, System Design, and many more!
If you want to test your competency in coding, you may check out the Mock Test Series and participate in the Contests organized on Coding Ninjas Studio! But if you have just started your learning process and are looking for questions asked by tech giants like Amazon, Microsoft, Uber, etc; you must look at the Problems, Interview Experiences, and Interview Bundle for placement preparations.
Nevertheless, you may consider our Courses to give your career an edge over others!
Do upvote our blog to help other ninjas grow.
Happy Coding!