Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Space Complexity of a solution when a fixed size array is used.

Revision en1, by _destiny, 2020-07-16 17:21:04

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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English _destiny 2020-07-16 17:21:04 257 Initial revision (published)