My code snippets about algorithm.