BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
You have a string containing equal numbers of the letters 'a' .. 'j'; randomly ordered:
chhbfbjjjcgaiiaachbaefeabcbjffdgaggbgccaihgjddedfheejdigcdeiacebdehfig +egifibdabhfdihbdhifcgjfjhcaejj
You want to map those 10 letters to the four digits '1'..'4', such that you end up with equal numbers of those four digits in the result.
This is just a random thought arising; but I'm stuck for an approach?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mapping 10 -> 4 equally.
by davies (Monsignor) on Jun 20, 2015 at 21:20 UTC | |
|
Re: mapping 10 -> 4 equally.
by Anonymous Monk on Jun 20, 2015 at 21:00 UTC | |
by BrowserUk (Patriarch) on Jun 20, 2015 at 21:19 UTC | |
by Anonymous Monk on Jun 20, 2015 at 21:47 UTC | |
|
Re: mapping 10 -> 4 equally.
by marinersk (Priest) on Jun 21, 2015 at 16:09 UTC | |
by BrowserUk (Patriarch) on Jun 21, 2015 at 20:03 UTC |