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

Function SearchRange

Algorithm/Search/SearchRange.ts:8–32  ·  view source on GitHub ↗

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

(nums: number[], target: number)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected