7 kyu
Sort Numbers
25,765 of 63,461jhoffner
Description:
Finish the solution so that it sorts the passed in array of numbers. If the function passes in an empty array or null/nil value then it should return an empty array.
For example:
solution([1, 2, 10, 50, 5]); // should return [1,2,5,10,50]
solution(null); // should return []
Fundamentals
Similar Kata:
Stats:
Created | Apr 22, 2013 |
Published | Apr 22, 2013 |
Warriors Trained | 85033 |
Total Skips | 5720 |
Total Code Submissions | 174956 |
Total Times Completed | 63461 |
JavaScript Completions | 25765 |
CoffeeScript Completions | 443 |
Ruby Completions | 4134 |
Python Completions | 19822 |
C# Completions | 2725 |
Rust Completions | 1459 |
Haskell Completions | 408 |
TypeScript Completions | 2037 |
R Completions | 526 |
C++ Completions | 3407 |
Clojure Completions | 265 |
Julia Completions | 63 |
PHP Completions | 1325 |
Go Completions | 2054 |
COBOL Completions | 14 |
C Completions | 616 |
λ Calculus Completions | 12 |
Scala Completions | 110 |
Crystal Completions | 8 |
Total Stars | 377 |
% of votes with a positive feedback rating | 89% of 4422 |
Total "Very Satisfied" Votes | 3610 |
Total "Somewhat Satisfied" Votes | 661 |
Total "Not Satisfied" Votes | 151 |