Returned List or Input array?

  • 0

    In the problem description said "You may assume the returned list does not count as extra space". However, the best voted solution uses input array to count visited. Is the problem really mean input array does not count as extra space?

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.