Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 506 Bytes

File metadata and controls

9 lines (6 loc) · 506 Bytes

Complete the method which accepts an array of integers, and returns one of the following:

  • "yes, ascending" - if the numbers in the array are sorted in an ascending order
  • "yes, descending" - if the numbers in the array are sorted in a descending order
  • "no" - otherwise

You can assume the array will always be valid, and there will always be one correct answer.