leetcode: missed an argument