Some algorithms and interview questions implemented with python