7 kyu
Flatten and sort an array
9,164 of 30,255lilsweetcaligula
Description:
Challenge:
Given a two-dimensional array of integers, return the flattened version of the array with all the integers in the sorted (ascending) order.
Example:
Given [[3, 2, 1], [4, 6, 5], [], [9, 7, 8]], your function should return [1, 2, 3, 4, 5, 6, 7, 8, 9].
Arrays
Sorting
Fundamentals
Similar Kata:
Stats:
Created | Sep 30, 2016 |
Published | Sep 30, 2016 |
Warriors Trained | 43185 |
Total Skips | 3515 |
Total Code Submissions | 73644 |
Total Times Completed | 30255 |
JavaScript Completions | 13224 |
Python Completions | 9164 |
Crystal Completions | 37 |
Ruby Completions | 1111 |
Elixir Completions | 318 |
Haskell Completions | 316 |
PHP Completions | 862 |
Java Completions | 2379 |
TypeScript Completions | 838 |
Dart Completions | 952 |
CoffeeScript Completions | 18 |
Julia Completions | 59 |
Swift Completions | 1347 |
F# Completions | 39 |
C Completions | 121 |
COBOL Completions | 5 |
Rust Completions | 253 |
Total Stars | 337 |
% of votes with a positive feedback rating | 93% of 3092 |
Total "Very Satisfied" Votes | 2691 |
Total "Somewhat Satisfied" Votes | 353 |
Total "Not Satisfied" Votes | 48 |
Total Rank Assessments | 10 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |