Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wireprotocol
· 9y ago · 0 comments
"reject!" is not an algorithm. It is a semantic element of the ruby language, which is implemented using an algorithm.
That algorithm, in this case, is a quadratic one.
Comments
[–]
ouid
9y ago
No, because a linear implementation of bsearch is clearly a bug.