diff options
| author | kittobi1992 <kittobi1992@users.noreply.github.com> | 2014-11-25 15:41:47 +0100 |
|---|---|---|
| committer | kittobi1992 <kittobi1992@users.noreply.github.com> | 2014-11-25 15:41:47 +0100 |
| commit | 8db16ab900b536f23150e500514455341313b2cd (patch) | |
| tree | 9eed2037b41fa987fccdfe254b23337ac5bcb501 | |
| parent | ce929ea18aae0f2b80207bb38a329c824bf29166 (diff) | |
Runtime update
| -rw-r--r-- | sonstiges/radixSort.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonstiges/radixSort.cpp b/sonstiges/radixSort.cpp index 5dbc02c..7ca51f6 100644 --- a/sonstiges/radixSort.cpp +++ b/sonstiges/radixSort.cpp @@ -1,3 +1,4 @@ +//Comparable with sort from <algorithms> in a range from 0 to 5000, for values greater than 5000 use sort const int p[10] = {1,10,100,1000,10000,100000,1000000,10000000,100000000,1000000000}; int getLongestNumber(vector<int> &a) { @@ -20,4 +21,4 @@ void radixSort(vector<int> &a) { for(int i = 0; i < 10; i++) copy(bucket[i].begin(), bucket[i].end(), back_inserter(a)); } -}
\ No newline at end of file +} |
