In the test case the expected output of
['wrtkj', 'wrt'] is
['wrt', 'wrtkj'] the output is
I can understand the logic of the first test case but the second seems quiet misleading, how does it come to the result?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.