Hourglass Puzzle-Asked in Oracle interviews.


Using only a four-minute hourglass and a seven-minute hourglass, what time can be measured with the process not taking longer than the time we are trying to measure.

A) 8 Minutes

B) 11Minutes

C) 6 Minutes

D) 9 Minutes

Solution: A B D are the solutions

For 8 mins,we can use the 4 min hourglass twice.For 11 mins, we can use 4 min hourglass followed by 7 min hourglass.For 9 mins, start both hourglasses at 0 minutes. Flip over the four-minute glass when it runs out (at 4:00); ditto for the seven-minute glass (at 7:00). When the four-minute glass runs out the second time (at 8:00), the seven-minute glass will then have one minute of sand in its lower bulb. Flip the seven-minute glass over again and let the minute of sand run back. When the last grain falls, that will be nine minutes.

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

How to Synchronize RDS Data to a Local User-Defined Database

How to Save Your Time and Money with Xamarin.Forms for App Development

Dask on Azure Databricks

Django Custom Auth Model Extending AbstractBaseUser

Nykaa customer care number☎️07318842602☎️

[Leetcode] Binary Search

What is gRPC and Building a gRPC service on .Net Core

Luneko Community Competition Results!

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


Upskilling students for tech placements!

More from Medium

Jelly Beans Jars Puzzle

Interview preparation -DSA #day1

14 Days Study Plan to Crack Algo I

Data Structures: Traversing, Insertion & Deletion