Make The Smallest Number Easy

+50 PTS

Before you start the test, check out our tutorial challenge

  • TYPE CODE PRACTICE CHALLENGE
  • LANGUAGES JAVASCRIPT, PHP, PYTHON2, PYTHON AND 3 MORE
    LANGUAGES JAVASCRIPT, PHP, PYTHON2, PYTHON, RUBY, SWIFT, TYPESCRIPT
  • TIME ~10MIN

Make The Smallest Number

Challenge outline

Hello and welcome to the challenge!


Write a code which creates the smallest possible number using digits from the given array. Every digit should be used, duplicates should be ignored.

Input

  • an array with digits (from 0 to 9)

Output

  • the smallest possible number properly created from the given digits

Constraints

  • 0 < output number < 1000000000


You can solve this programming contest in Ruby, JavaScript, Python, PHP and more languages. If you want, you can also take part in other May 2019 competitions. Below you can find some of them:



Did you like this challenge and would like to try your hand at some interesting big programming competitions? Check what’s all over the news in tech world in May 2019 in our article with upcoming IT Conferences, Hackathons and Online Challenges in May 2019.


Have fun and good luck! :)