A little confuse

  • 0

    Re: [DFS with one LinkedList](accepted java solution)

    "currentResult.remove(currentResult.size() - 1);//don't forget to remove the last integer"

    why we need to remove the last integer in here and at the end?

Log in to reply

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