You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
So the problem is asking to return the indices of the values that add up to the target. However, in the example, as listed in the problem shows the input and expected output:
Bug Report for https://neetcode.io/problems/two-integer-sum-ii
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
So the problem is asking to return the indices of the values that add up to the target. However, in the example, as listed in the problem shows the input and expected output:
The output should be
[0, 1]
assuming that we want the indices as the problem states.I tried the solution below which works for one of the cases but not for the other one. Apologies if I am overlooking a glaring mistake here.
Also, I noticed that one of the solutions listed in this problem increments the left and right pointer by
1
. Not sure why this is:The text was updated successfully, but these errors were encountered: