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

Function GetFirstK

Algorithm/Search/GetNumberOfK.ts:25–51  ·  view source on GitHub ↗

* 统计一个数字在排序数组中的第一个位置的索引,若不存在,则返回-1。 * @param {number[]} numbers * @param {number} k * @return {number}

(numbers: number[], k: number)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

GetNumberOfKFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected