Problem Description Link
Algorithm:
For solution of this problem you can use Bubble sort or selection sort etc
when you starting the sort you need exchange data item
when exchange data then increase the value of (Flip)
finally after complete the sort you need print (Flip)
selection sort is the best for running time.
Algorithm:
For solution of this problem you can use Bubble sort or selection sort etc
when you starting the sort you need exchange data item
when exchange data then increase the value of (Flip)
finally after complete the sort you need print (Flip)
selection sort is the best for running time.
No comments:
Post a Comment
Write your comment - Share Knowledge and Experience