Homework sol. for Zhangying's Data Structure courses