From d73d64ed95eefe9bbd997e11460886c55b4bbca4 Mon Sep 17 00:00:00 2001 From: Vitor Oliveira Date: Sun, 5 Sep 2021 10:48:42 -0700 Subject: [PATCH] Delete Intuition --- data_structures/hash_table/fizz_buzz.rb | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/data_structures/hash_table/fizz_buzz.rb b/data_structures/hash_table/fizz_buzz.rb index 84cc028..f618ad2 100644 --- a/data_structures/hash_table/fizz_buzz.rb +++ b/data_structures/hash_table/fizz_buzz.rb @@ -8,21 +8,6 @@ # Approach 1: Hash it! # -# Intuition -# -# This approach is an optimization over approach 2. When the -# number of mappings are limited, approach 2 looks good. But What -# if you decide to add too many mappings? -# -# Having a condition for every mapping is not feasible or may be -# we can say the code might get ugly and tough to maintain. -# -# What if tomorrow we have to change a mapping or maybe delete -# a mapping? Are we going to change the code every time we have a -# modification in the mappings? -# -# We don't have to. We can put all these mappings in a Hash Table. - # Complexity Analysis # Time Complexity: O(N)