Shifting a List(int) to become 1,2,3,4,5...
Hi, If I have a List like this:
And I would like for it to become:
This should be done by taking from the higher numbers in the list shifting them to the left so they come in order like above, how would I do that?
2,3,4,5And I would like for it to become:
1,2,3,4,4This should be done by taking from the higher numbers in the list shifting them to the left so they come in order like above, how would I do that?
