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

Function SumTwoNumbers

DataStructure/Array/SumTwoNumbers.js:10–21  ·  view source on GitHub ↗

* 给定一个整数数组 arr 和一个目标值 target,在该数组中找出和为目标值的那两个整数,并返回他们的数组下标。 * * @param {number[]} arr * @param {number} target * @return {number[]}

(arr, target)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected