An interesting programming challenge

Jerry Jensen jhj at jhj.com
Fri Apr 10 03:33:01 CEST 2015


> 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.
-------------- next part --------------

.Jerry



More information about the use-livecode mailing list