MCPcopy Create free account
hub / github.com/Reaper622/DataStructure-Algorithm-TS / SearchRange

Function SearchRange

Algorithm/Search/SearchRange.js:10–36  ·  view source on GitHub ↗

* 在排序数组中查找元素的第一个和最后一个位置 返回一个数组[FirstIndex, LastIndex] * 若不存在该值,则返回[-1, -1] * * @param {number[]} nums * @param {number} target

(nums, target)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

Search.test.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected