On 5/20/16 2:13 PM, Jens Müller wrote:
No it doesn't work because you need to break in the last case. Consider
the case when the last element of a is equal to an element in b. Next
iteration you overrun a.


I'm not that Bright :o).

So you'd need one more test, but you still save the other test and the test on one of the three branches, so 2 out of 4. -- Andrei

Reply via email to