Leetcode code solutions executed in java which have been accepted by LeetCode OJ