my LeetCode solution, aiming at clear comments & explanations.