08-05-2024, 03:52 PM
(08-05-2024, 03:45 PM)bplus Wrote: There was an underlying assumption of whole numbers I am pretty sure.
This problem is so similar to Rosetta Codes:
https://rosettacode.org/wiki/Sailors,_co...ey_problem
You can compare results 3 friends to 5 sailors, apples to coconuts and monkey to donkey.
Pah! I always like to work at it with an out-out-the-box thinking. Always impresses the suits looking to hire you. "Gosh, this guy seems like he might find solutions for us nobody else can! Quick, hire him and give him a raise!"
2nd bonus? Since it's non-standard solutions, the guys in charge of hiring can't usually point out your mistakes and prove you wrong.