Back to Problem Solutions forum
Regarding this problem, it is the 2nd sort task after learning bubblesort, and it asks us to return the initial index (position) of the value after sorting. Should we still be using bubble sort to sort the values, but also figure out a way to determine the initial index. Or is the indexing a new way to sort that we should be trying to figure out?
Daniel, hi there! look at the example answer - it contains only indices. So you may use any sorting algorithm (even sort them manually) - as long as you provide correct answer.
it is the 2nd sort task after learning bubblesort
note that problems do not follow any special order - they are ordered either by how much people solved them, or by order I created them. Both do not follow any special strategy.