Skip to content

Commit d73d64e

Browse files
authored
Delete Intuition
1 parent 12c69e8 commit d73d64e

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

data_structures/hash_table/fizz_buzz.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@
88
# Approach 1: Hash it!
99
#
1010

11-
# Intuition
12-
#
13-
# This approach is an optimization over approach 2. When the
14-
# number of mappings are limited, approach 2 looks good. But What
15-
# if you decide to add too many mappings?
16-
#
17-
# Having a condition for every mapping is not feasible or may be
18-
# we can say the code might get ugly and tough to maintain.
19-
#
20-
# What if tomorrow we have to change a mapping or maybe delete
21-
# a mapping? Are we going to change the code every time we have a
22-
# modification in the mappings?
23-
#
24-
# We don't have to. We can put all these mappings in a Hash Table.
25-
2611
# Complexity Analysis
2712

2813
# Time Complexity: O(N)

0 commit comments

Comments
 (0)