in reply to Re: Shortest string containing all from 0000 to 9999 challenge.
in thread Shortest string containing all from 0000 to 9999 challenge.
Wrong.
By the way it's not that sure that you can start with every 4 digit number. I think you can - but you need to prove it.
Update: Or is it right? Let's have two differend 4 digit strings - if they are different then at least on one of the 4 position they have different digits - the permutation will change those digits to different digits as well. It means the permutation induces a 1-1 function on the 10000 4 digit strings. There can't be any more of them so in the whole resulting string there will be exactly 10000 different 4 digit strings. QED
That was long time since I proved a theorem.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Shortest string containing all from 0000 to 9999 challenge.
by sauoq (Abbot) on May 22, 2003 at 20:12 UTC | |
|
Re: Re: Re: Shortest string containing all from 0000 to 9999 challenge.
by BrowserUk (Patriarch) on May 22, 2003 at 11:36 UTC |