some leetcode solution