i will try to be short. i need some "formula" or. a described way, how can i concat domains "together" so they dont touch?
in a example i will use letters instead of domains, i have:
A - gmail.com - 4
B - yahoo.com - 2
C - hotmail.com - 1
and thousand more
now i need some algorithm, so domains wont be together, like:
A | B | A | C | A | B | A
how can i accomplish that?
if letters must be togeter, let them be together as less as possible. another example is :
A - 10
B - 2
bad example of concat:
AAAAABAAAAAB
good example:
AAABAAABAAAA