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?
In reply to mapping 10 -> 4 equally. by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |