We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12c69e8 commit d73d64eCopy full SHA for d73d64e
data_structures/hash_table/fizz_buzz.rb
@@ -8,21 +8,6 @@
8
# Approach 1: Hash it!
9
#
10
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
-
26
# Complexity Analysis
27
28
# Time Complexity: O(N)
0 commit comments