7 kyu
Sort Numbers
26,134 of 64,579jhoffner
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 | 86500 |
Total Skips | 5807 |
Total Code Submissions | 177232 |
Total Times Completed | 64579 |
JavaScript Completions | 26134 |
CoffeeScript Completions | 443 |
Ruby Completions | 4143 |
Python Completions | 20280 |
C# Completions | 2769 |
Rust Completions | 1483 |
Haskell Completions | 414 |
TypeScript Completions | 2076 |
R Completions | 532 |
C++ Completions | 3480 |
Clojure Completions | 268 |
Julia Completions | 64 |
PHP Completions | 1348 |
Go Completions | 2132 |
COBOL Completions | 14 |
C Completions | 641 |
λ Calculus Completions | 12 |
Scala Completions | 115 |
Crystal Completions | 9 |
Total Stars | 382 |
% of votes with a positive feedback rating | 89% of 4456 |
Total "Very Satisfied" Votes | 3640 |
Total "Somewhat Satisfied" Votes | 665 |
Total "Not Satisfied" Votes | 151 |