iodump01 / CodeQuest

0 stars 6 forks source link

Wednesday- Software Engineering Puzzles #15

Open Sejaa24 opened 1 year ago

SiyedRizvee commented 1 year ago

Twitter:

Thread 1:

Wasting water

This is a classic brainteaser, and even appeared in a movie. Let's see if you can figure it out.

Brainteaser: If you had an infinite supply of water and a 5-liter and 3-liter bucket, how would you measure exactly 4 liters? The buckets do not have any intermediate markings.

Answer: A lot of wasted water.

Thread 2:

Workings: You may already know the answer or have worked it out, but we are obliged to give you an answer. Fill the 5-liter bucket first. Then using that bucket fill the 3-liter bucket, being careful not to spill any. This leaves 2 liters in the 5-liter bucket. Now chuck away the water in the 3-liter bucket and refill with the remaining 2 liters from the bigger bucket. Once again, fill the 5-liter bucket and then use this to fill the second 3-liter bucket. This will leave you with 4 liters in the 5-liter bucket. Simples!

LinkedIn:

Wasting water

This is a classic brainteaser, and even appeared in a movie. Let's see if you can figure it out.

Brainteaser: If you had an infinite supply of water and a 5-liter and 3-liter bucket, how would you measure exactly 4 liters? The buckets do not have any intermediate markings.

Answer: A lot of wasted water.

Workings: You may already know the answer or have worked it out, but we are obliged to give you an answer. Fill the 5-liter bucket first. Then using that bucket fill the 3-liter bucket, being careful not to spill any. This leaves 2 liters in the 5-liter bucket. Now chuck away the water in the 3-liter bucket and refill with the remaining 2 liters from the bigger bucket. Once again, fill the 5-liter bucket and then use this to fill the second 3-liter bucket. This will leave you with 4 liters in the 5-liter bucket. Simples!

Instagram:

Wasting water

This is a classic brainteaser, and even appeared in a movie. Let's see if you can figure it out.

Brainteaser: If you had an infinite supply of water and a 5-liter and 3-liter bucket, how would you measure exactly 4 liters? The buckets do not have any intermediate markings.

Answer: A lot of wasted water.

Workings: You may already know the answer or have worked it out, but we are obliged to give you an answer. Fill the 5-liter bucket first. Then using that bucket fill the 3-liter bucket, being careful not to spill any. This leaves 2 liters in the 5-liter bucket. Now chuck away the water in the 3-liter bucket and refill with the remaining 2 liters from the bigger bucket. Once again, fill the 5-liter bucket and then use this to fill the second 3-liter bucket. This will leave you with 4 liters in the 5-liter bucket. Simples!

Image