Hacker News new | ask | show | jobs
by mike_kamau 1836 days ago
Could you please add a description to your solution?
1 comments

Here is a Racket (/Scheme) version of the JavaScript solution with a thorough explanation.

http://pasterack.org/pastes/80529

Note that this solution is using a standard imperative style, with a loop over that narrows down the location of the sought of element in two subvectors of a and b.

Wow! Yes, this is all exactly right.