my algorithms recipe for contests