1 2 3 4 5 6 7 8 9 |
|
Following the algorithm of , given above, what is the modified version of the , given below, after the iteration ?
Hint: You can either have a dry-run or just follow the logic.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
After the fifth iteration the first five elements will be sorted and the last five will be just the way they were.
So it will be 3 4 6 7 8 2 5 9 0 1