re: Daily Challenge #3 - Vowel Counter VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Not sure if I follow. O(n log n) is worst than O(n). Insertions in a binary tree are expensive to keep it balanced. If you use a set or hashmap ass...

I've made the assumption that the binary tree was already built, it could've been done during compile time, for instance.

As for hashing functions, you could get away with an Array where the index is the code point for a given character.

code of conduct - report abuse