Problems from Top Coder and Codeforces