Interview puzzles are a type of brainteaser often used by employers during job interviews to assess a candidate's problem-solving, critical thinking, and logical reasoning abilities. These puzzles typically involve solving a challenging mathematical or logical problem or finding a pattern in a set of information. They are designed to test a candidate's ability to think creatively and outside the box, and to provide insight into how they approach complex challenges. here is a puzzle that is commonly asked in Interviews.

Puzzle Details: You are on your way to visit your Grandma, who lives at the end of the valley. It’s her anniversary, and you want to give her the cakes you’ve made. Between your house and her house, you have to cross 5 bridges, and as it goes in the land of make-believe, there is a troll under every bridge! Each troll, quite rightly, insists that you pay a troll toll. Before you can cross their bridge, you have to give them half of the cakes you are carrying, but as they are kind trolls, they each give you back a single cake. How many cakes do you have to leave home with to make sure that you arrive at Grandma’s with exactly 2 cakes?

Solution: 2 Cakes

How?

At each bridge, you are required to give half of your cakes, and you receive one back. Which leaves you with 2 cakes after every bridge.

watch the below video for a detailed explanation.

## No comments:

## Post a Comment