Words


C Algorithmic thinking Sorting Public

Easy  

10min


Implement function sort_words that sorts an array of words that contain lowercase characters from english alphabet, in descending order, and is efficient with respect to time used.

For example, the array { "cherry", "orange", "apple" } should, after sorting, become { "orange", "cherry", "apple" }.

   

  •   Example case: Wrong answer
  •   Several words: Wrong answer
  •   Performance test on a dictionary: Wrong answer