7 kyu
Sorted? yes? no? how?
6,246 of 21,565janitormeir
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 | 38657 |
Total Skips | 5105 |
Total Code Submissions | 91419 |
Total Times Completed | 21565 |
JavaScript Completions | 6246 |
Java Completions | 2420 |
C# Completions | 843 |
Python Completions | 6569 |
Ruby Completions | 843 |
C Completions | 1436 |
C++ Completions | 2378 |
TypeScript Completions | 641 |
Haskell Completions | 373 |
Clojure Completions | 312 |
Total Stars | 372 |
% of votes with a positive feedback rating | 88% of 2634 |
Total "Very Satisfied" Votes | 2093 |
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 |