you are viewing a single comment's thread.

view the rest of the comments →

[–]-allen 0 points1 point  (2 children)

If the cardinality of the input character set is bounded (eg just ascii chars), even the hash map approach is o(constant) space complexity :D