We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67394ff commit dc1fc3bCopy full SHA for dc1fc3b
test_module/hello.py
@@ -1,6 +1,11 @@
1
# Hello.py: A sample python script used for testing reviews
2
3
-def helloWorld():
4
- print("Hello World")
+def twoSum(array, targetSum):
+ for i in range(0, len(array)):
5
+ for j in range(i+1, len(array)):
6
+ if array[i] + array[j] == targetSum:
7
+ return ([array[i], array[j]])
8
+ return []
9
-helloWorld()
10
+twoSum([2,7,11,15], 9)
11
+
0 commit comments