7 kyu

Sorted? yes? no? how?

6,251 of 21,585janitormeir

Description:

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.

Arrays
Sorting
Fundamentals

Stats:

CreatedOct 21, 2016
PublishedOct 21, 2016
Warriors Trained38663
Total Skips5105
Total Code Submissions91454
Total Times Completed21585
JavaScript Completions6251
Java Completions2423
C# Completions843
Python Completions6578
Ruby Completions844
C Completions1436
C++ Completions2378
TypeScript Completions642
Haskell Completions374
Clojure Completions312
Total Stars372
% of votes with a positive feedback rating88% of 2634
Total "Very Satisfied" Votes2093
Total "Somewhat Satisfied" Votes468
Total "Not Satisfied" Votes73
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • janitormeir Avatar
  • raulbc777 Avatar
  • suic Avatar
  • anter69 Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • user5036852 Avatar
  • lilsweetcaligula Avatar
  • Blind4Basics Avatar
  • Voile Avatar
  • hobovsky Avatar
  • trashy_incel Avatar
  • user8436785 Avatar
Ad