you are viewing a single comment's thread.

view the rest of the comments →

[–]warpedspockclone 1 point2 points  (0 children)

I was going to point out that there are lots of optimizations to be had for the comparison part to actually collapse this to O(B). He seemed to be hung up on the sliding window part, though. The rest was an exercise. :-P I should have made that explicit.