Given an array of integers, for each index i, you have to swap the
value at i with the first value smaller than A[ i ] that comes after
index i
for example array A = {3,7,4,9,10,2,1}
The Output array should be : 2 4 3 7 9 1 10
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.