solutions to code problems from leetcode and euler project