solutions for questions on leetcode.