Re:Binary Search Reconsidered (2018)
by __s on Friday December 25, 2020 @03:21PM
(#25538757)
For reference, this is rust's actual binary search implementation: https://doc.rust-lang.org/src/core/slice/mod.rs.html#1841 (returns either Ok(index) when element exists, or Err(index) where index is where you'd insert the element when it doesn't exist)
[ Parent
| on HN ]
There are no comments on this comment yet.