The code looks good! I am trying to write these questions in Swift. Looks like there aren't too many Leetcode swift users.