fishercoder1534/Leetcode

Looks like mistake in the code #1836

kachurk opened this issue · 1 comments

Current implementation will return only one element in all cases.
Fix is to skip duplicates and stay only unique elements. Fix attached to this issue.
Screenshot 2023-12-12 at 12 14 57

Please submit a merge-able PR instead of opening an issue, thanks!