fashizzlepop wrote:Quite possibly a mistake. Plus it sounds more complicated than just plain ol' sorting. For example, a "word" that contained two '9's would be equal to a single lowercase 'r.' Of course this is a rough example.
fashizzlepop wrote:May I ask what language you plan on using? For example, in Perl, this can be done extremely easily as it has a built in "sort" command.
$counts = array();
foreach(count_chars(strtolower($word), 1) as $char => $count)
$counts = (chr($char).':'.$count);
fashizzlepop wrote:No problem, and stay sexy. Oh wait, you are using VB? Never mind. Very NOT sexy.
dm79 wrote:fashizzlepop wrote:No problem, and stay sexy. Oh wait, you are using VB? Never mind. Very NOT sexy.
LOL. You got me there. Used VB instead of C++ / Perl who are much sexier. I know. I am an opportunist and I will use whatever gets the job done at minimal effort. VB was fast, forgiving with arrays/data typing and it did the trick. If speed and 100% accuracy was crucial I would have done it in C++.
And by the way: it takes milliseconds at run time to resolve the the list. Thats not a problem as well.
Keep up the grove:)
Users browsing this forum: No registered users and 0 guests