Let's check it out. I've written a little bit of a test script here, so if we test cell sort, and I've written this so that it's going to print out what the list is at the end of each round, OK.
我们来检查检查,我写了一个小测试脚本,我写这个脚本来测试单元排序,它能够打印出每一轮结束后,链表的是什么样子的。
So this is to test whether a list is a palindrome.
我们可以把1放到数组里面作为第一个元素。
I've got a little list I've made here called test.
这里有一小段列表,我放在这里做为测试用。
应用推荐