7 kyu

Form The Minimum

1,405 of 28,825MrZizoScream

Description:

Task

Given a list of digits, return the smallest number that could be formed from these digits, using the digits only once (ignore duplicates). Only positive integers in the range of 1 to 9 will be passed to the function.

Examples

[1, 3, 1] ==> 13
[5, 7, 5, 9, 7] ==> 579
[1, 9, 3, 1, 7, 4, 6, 6, 7]  ==> 134679

Playing with Numbers Series

Playing With Lists/Arrays Series

Bizarre Sorting-katas

For More Enjoyable Katas

Fundamentals

Stats:

CreatedApr 5, 2018
PublishedApr 5, 2018
Warriors Trained44624
Total Skips5627
Total Code Submissions74655
Total Times Completed28825
C++ Completions1405
Python Completions8720
Ruby Completions823
C Completions473
TypeScript Completions736
PowerShell Completions196
JavaScript Completions10225
Crystal Completions26
C# Completions1136
Elixir Completions287
Java Completions2836
Haskell Completions262
Rust Completions794
F# Completions123
Dart Completions625
Julia Completions56
PHP Completions715
CoffeeScript Completions11
Reason Completions7
Racket Completions41
Prolog Completions34
CFML Completions11
Clojure Completions91
Nim Completions10
R Completions76
D Completions7
Total Stars364
% of votes with a positive feedback rating94% of 3120
Total "Very Satisfied" Votes2774
Total "Somewhat Satisfied" Votes313
Total "Not Satisfied" Votes33
Total Rank Assessments6
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • MrZizoScream Avatar
  • lauromoura Avatar
  • GiacomoSorbi Avatar
  • anter69 Avatar
  • donaldsebleung Avatar
  • Chrono79 Avatar
  • Ze-Marcos Avatar
  • B1ts Avatar
  • Jay-9 Avatar
  • fsb4000 Avatar
  • Voile Avatar
  • Ching Ching Avatar
  • achtlos Avatar
  • rsa Avatar
  • dke Avatar
  • metagn Avatar
  • FArekkusu Avatar
  • bdw429s Avatar
  • DreamTeam Avatar
  • user9644768 Avatar
  • cliffstamp Avatar
  • stellartux Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
Ad