Trying with some of algorithms problems