Skip to content

Commit d4b1efe

Browse files
authored
Added space complexity
1 parent 07c7bd1 commit d4b1efe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/hash_table/isomorphic_strings.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
# Approach 1: Hash Map
2626
# Time Complexity: O(N)
27+
# Space Complexity: O(N)
2728

2829
def isomorphic_strings_check(s, t)
2930
# store character mappings
@@ -60,4 +61,4 @@ def isomorphic_strings_check(s, t)
6061
# => false
6162

6263
puts isomorphic_strings_check("paper", "title")
63-
# => true
64+
# => true

0 commit comments

Comments
 (0)