Here is my leetcode's code .