My Coding Practice about Algorithm