Fun programming challenge

Mark Waddingham mark at livecode.com
Mon Dec 7 09:16:11 EST 2015


Although it's important to remember that shift left by n bits is the same as multiplying by 2^n, and right is the same as div by 2^n. Rotate is a little trickier, admittedly.

Mark

Sent from my iPhone

> On 7 Dec 2015, at 14:00, Peter TB Brett <peter.brett at livecode.com> wrote:
> 
>> On 07/12/2015 13:45, Geoff Canyon wrote:
>> http://adventofcode.com
>> 
>> Two related problems each night at midnight EST. It started easy, but it
>> seems to be getting more challenging. The leaderboard is the top 100,
>> sorted first by how many problems you've solved, and then by the time you
>> submitted solutions, so it ends up being a speed competition each night. I
>> admit a little frustration that last night I was twice as slow as about 20
>> people, but maybe they didn't have to code their own left and right
>> bit-shift operations. (do we have those built-in and I just missed it?)
> 
> Hi Geoff,
> 
> I just checked -- there are sadly no bit shift/rotate operations in LiveCode Script, but we have added them to LiveCode Builder.
> 
>                                       Peter
> 
> 
> -- 
> Dr Peter Brett <peter.brett at livecode.com>
> LiveCode Open Source Team
> 
> LiveCode on reddit: https://reddit.com/r/livecode
> 
> _______________________________________________
> 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