Codes for various programming problems