some algorithm problems on leetcode