Skip to content

Commit 7b5faf9

Browse files
committed
add class 03
1 parent 2218c6d commit 7b5faf9

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package class02;
1+
package class03;
22

33
import java.util.Arrays;
44

5-
public class Code04_BSExist {
5+
public class Code01_BSExist {
66

77
public static boolean exist(int[] sortedArr, int num) {
88
if (sortedArr == null || sortedArr.length == 0) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package class02;
1+
package class03;
22

33
import java.util.Arrays;
44

5-
public class Code05_BSNearLeft {
5+
public class Code02_BSNearLeft {
66

77
// 在arr上,找满足>=value的最左位置
88
public static int nearestIndex(int[] arr, int value) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package class02;
1+
package class03;
22

33
import java.util.Arrays;
44

5-
public class Code06_BSNearRight {
5+
public class Code03_BSNearRight {
66

77
// 在arr上,找满足<=value的最右位置
88
public static int nearestIndex(int[] arr, int value) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package class02;
1+
package class03;
22

3-
public class Code07_BSAwesome {
3+
public class Code04_BSAwesome {
44

55
public static int getLessIndex(int[] arr) {
66
if (arr == null || arr.length == 0) {

0 commit comments

Comments
 (0)