TimSort Usage: Write some code in FILENAME.cpp gen.py FILENAME.cpp ??????? SUBMIT! Build it with -DFORCE_INPLACE_MERGE to use inplace merge even if you have enough memory.