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

Stats:

CreatedSep 30, 2016
PublishedSep 30, 2016
Warriors Trained43185
Total Skips3515
Total Code Submissions73644
Total Times Completed30255
JavaScript Completions13224
Python Completions9164
Crystal Completions37
Ruby Completions1111
Elixir Completions318
Haskell Completions316
PHP Completions862
Java Completions2379
TypeScript Completions838
Dart Completions952
CoffeeScript Completions18
Julia Completions59
Swift Completions1347
F# Completions39
C Completions121
COBOL Completions5
Rust Completions253
Total Stars337
% of votes with a positive feedback rating93% of 3092
Total "Very Satisfied" Votes2691
Total "Somewhat Satisfied" Votes353
Total "Not Satisfied" Votes48
Total Rank Assessments10
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • lilsweetcaligula Avatar
  • GiacomoSorbi Avatar
  • user8476848 Avatar
  • siebenschlaefer Avatar
  • Chrono79 Avatar
  • kazk Avatar
  • JohanWiltink Avatar
  • wneumann Avatar
  • neilm Avatar
  • kingcobra Avatar
  • sfabruz Avatar
  • monadius Avatar
  • Awesome A.D. Avatar
  • hobovsky Avatar
  • cliffstamp Avatar
  • GabeAtWork Avatar
  • trashy_incel Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
Ad