solutions for LeetCode in c++