These are my solutions to the problems on hackerrank.com.