Practice algorithm from leercode etc。