Re:Functional Pearl 1 – The Min Missing Natural Number
by marvy on Sunday February 15, 2015 @07:46PM
(#9054801)
But there's an easy fix: don't pick numbers from the given sequence, instead use binary search on [0,n]. Then you're guaranteed only log n iterations.
[ Parent
| on HN ]
Re:Functional Pearl 1 – The Min Missing Natural Number
by jacksontale on Sunday February 22, 2015 @07:32AM
(#9089167)
Hi, I was using pure functional programming style, so list only.