Skip to content

Commit 8073155

Browse files
committed
claim TwoSum problem
1 parent b81b5b1 commit 8073155

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Two-Sum Problem/README.markdown

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Two-Sum Problem
22

3+
### About to be edited for Swift 4 woohoo!
4+
35
You're given an array `a` with numbers. Write an algorithm that checks if there are any two entries in the array that add up to a given number `k`. In other words, is there any `a[i] + a[j] == k`?
46

57
There are a variety of solutions to this problem (some better than others). The following solutions both run in **O(n)** time.

0 commit comments

Comments
 (0)