_destiny's blog

By _destiny, history, 4 years ago, In English

Can I say my solution is in O(1) space if I use a hash array of fixed size say of size 52(for lowercase and uppercase alphabets) to count the number of each alphabet that is present in a string?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it