Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
''
&
#x27;
2
Given an array of integers,
return
indices of the two numbers such that they add up to a specific target.
3
You may assume that each input would have exactly one solution.
4
Given nums = [2, 7, 11, 15], target = 9,
Callers
nothing calls this directly
Calls
2
twoSum
Method · 0.80
Solution
Class · 0.70
Tested by
no test coverage detected