Some code I wrote for competitive coding problems, including LeetCode and TopCoder