Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code Challenge: Snacky Friends, a donkey, and Apples
#16
(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.   Big Grin
Reply


Messages In This Thread
RE: Code Challenge: Snacky Friends, a donkey, and Apples - by SMcNeill - 08-05-2024, 03:52 PM



Users browsing this thread: 11 Guest(s)