updated LeetCode solutions.