Why O(n) is better

Because much simpler just check by 1 letter, than waste time on sorting them before.

Privacy & Terms