This is my sol to some questions on leetcode