0

In langage C

How to Write a function that sorts a table. This function uses pointers. The table elements must only have the values from 0 to 9 with the following criteria: - All elements whose value is strictly below 3 are at the beginning of the table, all the elements between 3 and 6 are in the middle and all the elements greater than 6 at the end of the table

12th Mar 2019, 1:25 PM
Corneille Mulumba
Corneille Mulumba - avatar
3 odpowiedzi
0
It’s fairly easy. You just have to make a new table, then do O(n*10) algorithm to the original table and find every 0,1,2,...9 and put the element in increasing order.
12th Mar 2019, 1:55 PM
Owenizedd
Owenizedd - avatar
0
You can write it please
12th Mar 2019, 1:57 PM
Corneille Mulumba
Corneille Mulumba - avatar
0
give me your current code that has a table but not sorted yet
12th Mar 2019, 1:58 PM
Owenizedd
Owenizedd - avatar