by mahmud · 16y ago · 0 comments
Binary search, and more specifically recursion over lists and trees, and the logical reasoning over with induction is one of the most primitive skills one acquires while learning Lisp.
I think second runner-up is the recursive version where you use slices... does lisp have slices?
And binary search is definitely not the right operation on linked lists. So even in Lisp you should use a different data structure if you want to do a binary search.