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
Similar Kata:
Stats:
Created | Oct 21, 2016 |
Published | Oct 21, 2016 |
Warriors Trained | 38663 |
Total Skips | 5105 |
Total Code Submissions | 91454 |
Total Times Completed | 21585 |
JavaScript Completions | 6251 |
Java Completions | 2423 |
C# Completions | 843 |
Python Completions | 6578 |
Ruby Completions | 844 |
C Completions | 1436 |
C++ Completions | 2378 |
TypeScript Completions | 642 |
Haskell Completions | 374 |
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 |