Solutions to LeetCode coding problems