Clever approach:
Complexity
Time:
Space: because the dictionary size is fixed since there is a limited set of characters
Search
May 17, 20241 min read
Clever approach:
Time: O(n)
Space: O(1) because the dictionary size is fixed since there is a limited set of characters