Datastructures and algorithms for coding competitions.