Solution set for LeetCode.com.