Algorithm Practise With Cpp The aim is learning Cpp and algorithm. The origin question is from Leetcode.