Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Add Solution For Two Sum #526

Merged
merged 1 commit into from
Oct 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Programming/Python/TwoSum/Two Sum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def twoSum(numbers, target):
for i, num in enumerate(numbers):
for j, numb in enumerate(numbers):
if i == j:
continue
elif num + numb == target:
return [i+1,j+1]