I don't know how to output the empty list to match the result, null does not work. Anybody can help?
for C++, you should return an empty vector.
for Java, you should return an empty ArrayList
you should not return NULL/null
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.