in reply to LeetCode Problem #1 - Two Sum - Improve and/or discuss.
I think
means you have to also allow the reverse order in your tests.
this can be fixed by sorting the result first.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: LeetCode Problem #1 - Two Sum - Improve and/or discuss.
by kcott (Archbishop) on Jan 24, 2022 at 02:20 UTC | |
by LanX (Saint) on Jan 24, 2022 at 02:25 UTC | |
by kcott (Archbishop) on Jan 24, 2022 at 03:35 UTC | |
by NetWallah (Canon) on Jan 24, 2022 at 04:00 UTC | |
by LanX (Saint) on Jan 24, 2022 at 08:49 UTC | |
by kcott (Archbishop) on Jan 24, 2022 at 21:36 UTC | |
|