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

Правка en1, от _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?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский _destiny 2020-07-16 17:21:04 257 Initial revision (published)