my attempts on leetcode oj