Measure Time by Burning Rope Puzzle-Asked in interviews.

Question:

You have two ropes and a box of matches. Each rope takes exactly one hour to burn, but they may not necessarily burn evenly — i.e., the first half might burn in the first 10 minutes and the second in the remaining 50). What durations of time can you measure using the 2 ropes? Times do not have to start when the first rope is lit.

A) 1 hour

B) 30 minutes

C) 45 minutes

D) 15 minutes

Solution: A B C D are the solutions

Burining a single rope lets you measure 1 hour. Burning 2 ends of it at the same time let you measure 30 minutes.
Start by lighting both ends of one rope and only one end of the second rope. When the first rope is finished burning (i.e., after a half an hour), light the other end of the second rope. At this point, the second rope is halfway burned, so it will take another 15 minutes to burn the second half with both ends lit. When the second rope is done burning, 45 minutes has elapsed.
15 minutes has elapsed after first rope is completely burnt.

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

--

Upskilling students for tech placements!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Creating Objects and Getting Rid of Them in Unity

Salesforce Hack: Score-ify Your Campaign Monitor Newsletter Activity

The Story of Web Summit 2020: How Collabio Spaces Participated in the Conference

Own edge trial team.

Container Orchestration and Different Orchestration Tools

READ/DOWNLOAD*? Engineering Ethics: Concepts and C

The Sprint Review

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Placewit

Placewit

Upskilling students for tech placements!

More from Medium

Spider’s Web Puzzle

Why I am writing leetcode posts, and how it can help

1570. Dot Product of Two Sparse Vectors

Eggs and Building Puzzle