Hello everyone, as titled and below is my Python code,
I've passed the Run Code button but can not pass submit
progress, it shows "Time Exceeded Error", can someone
help me? Many thanks in advance.
count = 0 while count < len(nums): for k in range(len(nums)): if count + k + 1 < len(nums): if (nums[count] + nums[count+k+1]) == target: return [count, count+k+1] count += 1