this branch is the answer to leetcode writen by me using c++... some of the code may referred the source in leetcode.com