A simple algorithm for the hourglass riddle. From user input we calculate whether a desired time is possible to measure given the two different hourglasses. User inputs minutes for both hourglasses and desired time, which has to start from the beginning, when we turn one or both of the hourglasses.
A simple algorithm for the hourglass riddle. From user input we calculate whether a desired time is possible to measure given the two different hourglasses. User inputs minutes for both hourglasses and desired time, which has to start from the beginning, when we turn one or both of the hourglasses.
awagnerur/hourglass
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple algorithm for the hourglass riddle. From user input we calculate whether a desired time is possible to measure given the two different hourglasses. User inputs minutes for both hourglasses and desired time, which has to start from the beginning, when we turn one or both of the hourglasses.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published