codes for leetcode, by C or Python.