An interesting programming challenge
Jerry Jensen
jhj at jhj.com
Thu Apr 9 21:36:47 EDT 2015
This time with the stack attached . . .
> On Apr 9, 2015, at 3:33 PM, Geoff Canyon <gcanyon at gmail.com> wrote:
>
> https://brilliant.org/problems/the-clever-cat/?group=sigjT0HDmvgp&ref_id=713367
>
> Happy to say that the code I wrote gave the correct answer the first time,
> so yay.
>
> I'll post my solution in a reply to make it easier to avoid spoilers in
> case anyone wants to try it themselves.
>
gc
Here’s my script that gave the right answer the first time too. It runs in about 100 msec on a MacBookPro 2.6GHz i7 with Yosemite 10.10.3 and LC 6.7.4 .
Its in the button script of the GO button.
.Jerry
-------------- next part --------------
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list