This is a collection of solutions to various competitive programming problems I've solved over the years. This is meant to be a reference for me as well as for anyone else who might see this as helpful.
Have a better, efficient or more nifty solution to one of the problems above? I'd love to see it, send a PR.