Skip to content

AniketWithPython/10-digit-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

10-digit-number

Problem

The Problem statement goes as follows:

Find a 10 digit number such that

The first digit gives the number of zeros in the number

The second digit gives the number of ones in the number

The third digit gives the number of twos in the number

The fourth digit gives the number of threes in the number

The fifth digit gives the number of fours in the number

The sixth digit gives the number of fives in the number

The seventh digit gives the number of sixes in the number

The eighth digit gives the number of sevens in the number

The ninth digit gives the number of eights in the number

The tenth digit gives the number of nines in the number

Rust solution

This solution uses a brute-force approach and parallelism to achieve the result*. Parallelism is achieved using rayon.

Answer

6210001000

©Aniket Maity 2024

* Performance may vary depending on system.

About

Code for solution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages