Ah that is an error, thanks!
I'm still having the same problem though unfortunately.
Junk code from when I counted the next position as the previous index + 1. I'll remove that.
The...
Type: Posts; User: CaliforniaCoder1984
Ah that is an error, thanks!
I'm still having the same problem though unfortunately.
Junk code from when I counted the next position as the previous index + 1. I'll remove that.
The...
Sorry. I've edited the OP to make it a bit clearer. It was very late when I made the post initially. Hope this helps.
I've made a system that when given an array of unsorted numbers and the length of the array returns the sequence at which points the array can be flipped to create a sorted list.
I have the main...