MCPcopy Create free account
hub / github.com/Blankj/awesome-java-leetcode / main

Method main

src/com/blankj/easy/_0035/Solution.java:22–29  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

20 }
21
22 public static void main(String[] args) {
23 Solution solution = new Solution();
24 int[] nums = new int[]{1, 3, 5, 6};
25 System.out.println(solution.searchInsert(nums, 5));
26 System.out.println(solution.searchInsert(nums, 2));
27 System.out.println(solution.searchInsert(nums, 7));
28 System.out.println(solution.searchInsert(nums, 0));
29 }
30}

Callers

nothing calls this directly

Calls 1

searchInsertMethod · 0.95

Tested by

no test coverage detected