Solutions in cpp which passed the online judge in leetcode.com