just some Leetcode practice along the way