Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
two sum
class Solution(object): def twoSum(self, nums, target): mykeys={} n = len(nums) for i in range(n): num2 = target - nums[i] if num2 in mykeys.keys(): return i, mykeys[num2] mykeys[nums[i]] = i
run
|
edit
|
history
|
help
0
fb_series
PyAddBook
u
tes umur
GayChicken
rstring
Recurring function checker
how far light travels in centimeters in one nanosecond
Цідило
Problem: on_off