MCPcopy Create free account
hub / github.com/WomenWhoCodeNYC/Algorithms / twoSum

Function twoSum

challenges/twoSum/solutions/twoSum_02.py:1–13  ·  view source on GitHub ↗

Given a list of nums with only one pair whose sum is the target, it returns the pair's respectie indices. args: nums: a list of numbers in the set of real numbers, including numbers < 0 target: a number in the set of real numbers which has 1 pair inside nums whose sum is eq

(nums, target)

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