Codes for Leetcode Online Judge