MCPcopy Create free account
hub / github.com/algorithm004-01/algorithm004-01 / twoSum2

Method twoSum2

Week 01/id_501/homework/week01/TwoSum.java:41–57  ·  view source on GitHub ↗

思路: target - nums[i] = hashMap.get(j)说明匹配整取 map 存储的key为nums的数值,value为nums的索引 @param nums @param target @return

(int[] nums, int target)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mainMethod · 0.95

Calls 2

getMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected