11-01-2024, 06:31 AM
(10-31-2024, 09:21 PM)Scout Wrote: AB,
your sorting method is probably a shortened version of the counting sort algorithm.
It cleverly uses the array indices.
However, it only works for integers up to the array size, in this case 1024. If there are larger numbers, not everything is sorted.
This could be corrected if the indices are given special treatment or if the normal counting sort algorithm is used.
Hello, Scout.
This is an interesting version of the problem.
I will again be interested in coming up with something unusual myself.
Thank you.