Back to course home
0% completed
Vote For New Content
Does the solution need to be in order?
Ming Chen
Jun 27, 2023
It seems like the only accepted solutions also sort the result array which doesn't seem to be part of the problem statement. If it is not a hard requirement, instead of checking for duplicates within searchPair, we can also append tuples to the list and then use a set to only leave the unique tuples before converting the tuples into lists.
0
0
Comments
Comments
On this page