LeetCode Online Judge is a platform for preparing technical coding interviews and assessing your knowledge of data structures and algorithms.
I used C++ programming language to sovle problem sets.
The solved problem is not the optimal condition but it was accpeted by leetcode judge system.