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
Similar Kata:
Stats:
Created | Oct 21, 2016 |
Published | Oct 21, 2016 |
Warriors Trained | 38429 |
Total Skips | 5082 |
Total Code Submissions | 91082 |
Total Times Completed | 21412 |
JavaScript Completions | 6196 |
Java Completions | 2407 |
C# Completions | 838 |
Python Completions | 6508 |
Ruby Completions | 842 |
C Completions | 1430 |
C++ Completions | 2367 |
TypeScript Completions | 635 |
Haskell Completions | 371 |
Clojure Completions | 311 |
Total Stars | 369 |
% of votes with a positive feedback rating | 88% of 2628 |
Total "Very Satisfied" Votes | 2087 |
Total "Somewhat Satisfied" Votes | 468 |
Total "Not Satisfied" Votes | 73 |
Total Rank Assessments | 8 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |