On 21 March 2014 19:55, Jay Foad <[email protected]> wrote:

>       >\3 1 2
> 3 1 1
>
> I think your explanation of scan would lead to the result 3 1 0.
>
> Associativity matters because the last item of the result is 3>1>2,
> which means 3>(1>2). But your explanation would lead to (3>1)>2 as the
> last item.
>

You are right, but that can be addressed by defining my solution to simply
evaluate the pairs from the right.

Regards,
Elias

Reply via email to