示例#1
0
 def test_naive(self):
     list = SinglyLinkedList.generateExample()
     mid = list.head
     for i in range(0, 4):
         mid = mid.next
     naive_solution(mid)
     self.assertEqual(list.stringify(), '0 -> 1 -> 2 -> 3 -> 5 -> 6 -> 7 -> 8 -> 9')