ok I am starting to get it, now I have a good question using one of your examples in regards to "the high frequency as lead digits"
example:
332255500044---50324
in the above remaining string I see that you broke the final string into 50324 given the high frequency of the remaining digits in the string:
we have:
the digit 5 appearing 3 times
the digit 0 appearing 3 times
digit 3 appearing twice
digit 2 appearing twice
digit 4 appearing twice
so the digits 5 and 0 are currently at the front of the string in terms of following "high frequency as lead digits" but 5 and 0 are tied in frequency appearing 3 times, and remaining digits 3,2,4 are also all tied appearing twice..
so my question is what is the additional factor that goes into determining the lead digits besides frequency if digits are tied in frequencies? because technically I could also make my string the following:
05243
05324
05432
50342
correct?
what determines the 5 digit is the lead digit over the 0 digit as they are tied in frequency? and what determines the lead digits go as 324 when they are all tied in frequency?
I think you understand what I am trying to say and asking, would really appreciate feedback on this as I am stuck here in terms of ordering my final string correctly when digit frequencies are tied.