leetcode analysis