rest of leetcode solutions