Does this problem has elegant iterative solutions?

  • 0

    I have seen many recursive solutions, true, they are beautiful. But I am just curious would this problem has an elegant iterative solution as well?

Log in to reply

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