@Test public void GetMid_OddIntervalStartsFromZero_ReturnsMid() throws Exception { int actual = BisectBoundaryHelper.getMid(0, 3); assertEquals(actual, 1); actual = BisectBoundaryHelper.getMid(0, 11); assertEquals(actual, 5); }
public static int getMid(int left, int right) { return left + (right - left) / 2; }
BisectBoundaryHelper { public static int getMid(int left, int right) { return left + (right - left) / 2; } }
BisectBoundaryHelper { public static int getMid(int left, int right) { return left + (right - left) / 2; } private  BisectBoundaryHelper(); }
BisectBoundaryHelper { public static int getMid(int left, int right) { return left + (right - left) / 2; } private  BisectBoundaryHelper(); static BisectStep getNextStep(BisectStep step, boolean isSuccess); static BisectStep firstStep(int number); static int getMid(int left, int right); }
BisectBoundaryHelper { public static int getMid(int left, int right) { return left + (right - left) / 2; } private  BisectBoundaryHelper(); static BisectStep getNextStep(BisectStep step, boolean isSuccess); static BisectStep firstStep(int number); static int getMid(int left, int right);  }