Java's equivalent to bisect in python

Posted by systemsfault on Stack Overflow See other posts from Stack Overflow or by systemsfault
Published on 2010-05-31T17:18:09Z Indexed on 2010/05/31 17:23 UTC
Read the original article Hit count: 227

Filed under:
|
|

Hello all,

Is there a java equivalent to python's bisect library? With python's bisect you can do array bisection with directions. For instance bisect.bisect_left does:

Locate the proper insertion point for item in list to maintain sorted order. The parameters lo and hi may be used to specify a subset of the list which should be considered; by default the entire list is used.

© Stack Overflow or respective owner

Related posts about java

Related posts about python