diff options
Diffstat (limited to 'converter/cQuicksort.h')
-rw-r--r-- | converter/cQuicksort.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/converter/cQuicksort.h b/converter/cQuicksort.h new file mode 100644 index 000000000..b9327bd7d --- /dev/null +++ b/converter/cQuicksort.h @@ -0,0 +1,16 @@ +#pragma once + + +class cQuicksort { + + +public: + void quicksort(int*, int, int); + + +private: + int partition(int*, int, int, int); + int median3(int*,int,int); + void swap(int &, int &); + +}; |