My vote is O(n)

I think O(n) is much better because it compares the characters with out having to sort them. The other formulas looks to sort them then compare the characters which is not efficient for our isogram method.

Privacy & Terms