Leetcode makes my head explode