Recently, when I played on LeetCode.com, there is a solution for a question is really beautiful. In this post, I want to present this solution.
The question is:
The solution is:
Recently, when I played on LeetCode.com, there is a solution for a question is really beautiful. In this post, I want to present this solution.
The question is:
The solution is: