Algorithm solutions for problems from Leetcode, Careercup150