Solutions for LeetCode problems