Base on leetcode, create other pratical algorithms.