Sorting algorithms/Quicksort: Difference between revisions
Content deleted Content added
m →version 1: corrected a state's name. -- ~~~~ |
|||
Line 737:
List<int> resultSet = new List<int>();
resultSet.AddRange(quicksort(loe));
loe.Add(pivot_val);
}else{
gt.Add(pivot_val);
}
resultSet.AddRange(quicksort(gt));
return resultSet;
|