7 kyu

Sorted? yes? no? how?

6,196 of 21,412janitormeir

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 Trained38429
Total Skips5082
Total Code Submissions91082
Total Times Completed21412
JavaScript Completions6196
Java Completions2407
C# Completions838
Python Completions6508
Ruby Completions842
C Completions1430
C++ Completions2367
TypeScript Completions635
Haskell Completions371
Clojure Completions311
Total Stars369
% of votes with a positive feedback rating88% of 2628
Total "Very Satisfied" Votes2087
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