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
if res != [] and res[-1][0] == cur: continue# Drop duplicates for the first time.
260
+
261
+
while l < r:
262
+
if cur + nums[l] + nums[r] ==0:
263
+
res.append([cur, nums[l], nums[r]])
264
+
# Drop duplicates for the second time in interation of l & r. Only used when target situation occurs, because that is the reason for dropping duplicates.
0 commit comments