Class BisectionSearchUtils


  • public class BisectionSearchUtils
    extends Object
    Utility class for bisection search.
    • Constructor Detail

      • BisectionSearchUtils

        public BisectionSearchUtils()
    • Method Detail

      • findMinLegalValue

        public static long findMinLegalValue​(Function<Long,​Boolean> legalChecker,
                                             long low,
                                             long high)
      • findMaxLegalValue

        public static long findMaxLegalValue​(Function<Long,​Boolean> legalChecker,
                                             long low,
                                             long high)