Can someone share the C code for selection or bubble sort for string. String comparison should be based on dictionary comparison.
both seems to be same, can someone explain the difference with example and complexity?
1) Implement both algorithms 2) Test both on three cases of data: a) sorted in increase order, b) sorted in decrease order, c) randomly 3) Use data of different sizes: 10000, 100000, 1000000.