these coding are the introduction algorithm homework
this coding is the homework when I studying the introduction algorithm