Relative Content

Tag Archive for pythonpython-3.xlist

What am I doing wrong in this array sorting?

I have this code that searches the minimum value and the maximum value in a list, adding and reducing the range of where will it search for those values, but the list ends up close to be sorted, but they aren’t and I still can’t figure how to fix this.

What am I doing wrong in this array sorting? [Python]

So, I’ve been struggling for 6 hours to understand this problem by now.
I have this code that searches the minimum value and the maximum value in a list, adding and reducing the range of where will it search for those values, but the list ends up close to be sorted, but they aren’t and I still can’t figure how to fix this.