MCPcopy Create free account
hub / github.com/codingXiaxw/leetcode / main

Method main

algorithms/Java/searchInsertPosition.java:12–15  ·  view source on GitHub ↗

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. @param args 给定排序的数组和目标值,如果找到目标,则返回索引。如果没有,返回它被插入顺序数组中的索引。

(String[] args)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

searchInsertMethod · 0.95

Tested by

no test coverage detected