some Algorithms in Leetcode