Algorithms from topcoder