Words


C Algorithmic thinking Sorting Public

Easy  

10min


Implement function sort_words that can sort an array of words which contain lowercase characters from english alphabet, in descending order.

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