The homework of algorithm and datastructure.