コード例 #1
0
ファイル: main.py プロジェクト: BuiTran/SortingLab
def dRandomizedQuickSort(x):
    
    randomizedQuickSort = RandomizedQuickSort(x)
    randomizedQuickSort.start()
コード例 #2
0
ファイル: SortTesting.py プロジェクト: BuiTran/SortingLab
 def testRandomizedQuickSort(self):
     x = [-20,-45,995,912,126,1246,624]
     randomizedQuickSort = RandomizedQuickSort(x)
     randomizedQuickSort.start()
     self.assertEqual(x,[-45.0, -20.0, 126, 624, 912, 995, 1246])