Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 723bd3b

Browse files
author
Amogh Singhal
authored
Update find_pairs_sum_k.py
1 parent e466cb5 commit 723bd3b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎find_pairs_sum_k.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Given an array of numbers, find all the
2+
# pairs of numbers which sum upto `k`
3+
14
def find_pairs(num_array, k):
25
pairs_array = []
36
for num in num_array:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /