MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / 1. Two Sum.py

File 1. Two Sum.py

leetcode/1. Two Sum.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1'''
2Given an array of integers, return indices of the two numbers such that they add up to a specific target.
3You may assume that each input would have exactly one solution.
4Given nums = [2, 7, 11, 15], target = 9,

Callers

nothing calls this directly

Calls 2

twoSumMethod · 0.80
SolutionClass · 0.70

Tested by

no test coverage detected