Some leetcode code