7 kyu

Form The Minimum

1,433 of 29,477MrZizoScream

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

Similar Kata:

Stats:

CreatedApr 5, 2018
PublishedApr 5, 2018
Warriors Trained45428
Total Skips5689
Total Code Submissions76037
Total Times Completed29477
C++ Completions1433
Python Completions8963
Ruby Completions829
C Completions480
TypeScript Completions759
PowerShell Completions202
JavaScript Completions10435
Crystal Completions26
C# Completions1156
Elixir Completions292
Java Completions2894
Haskell Completions266
Rust Completions812
F# Completions125
Dart Completions646
Julia Completions57
PHP Completions727
CoffeeScript Completions11
Reason Completions7
Racket Completions41
Prolog Completions35
CFML Completions11
Clojure Completions94
Nim Completions11
R Completions78
D Completions7
Total Stars366
% of votes with a positive feedback rating94% of 3153
Total "Very Satisfied" Votes2803
Total "Somewhat Satisfied" Votes316
Total "Not Satisfied" Votes34
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