4 ms·
"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 quadr
by jeffdavis 10y ago
"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.
- ouid 10y agoNo, because a linear implementation of bsearch is clearly a bug.