Competitive Programming code (uva id:binghui2, kattis id: Alan Cheng) and also leetcode problems' answers