mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-26 21:58:56 +01:00
move to array folder
This commit is contained in:
parent
6bf41b50eb
commit
9a7313d669
1 changed files with 0 additions and 5 deletions
|
@ -72,11 +72,6 @@ fizz_buzz(n)
|
||||||
# Condition 2: 15 % 5 == 0 , num_ans_str += "Buzz"
|
# Condition 2: 15 % 5 == 0 , num_ans_str += "Buzz"
|
||||||
# => num_ans_str = "FizzBuzz"
|
# => num_ans_str = "FizzBuzz"
|
||||||
#
|
#
|
||||||
# So for FizzBuzz we just check for two conditions instead of three
|
|
||||||
# conditions as in the first approach.
|
|
||||||
#
|
|
||||||
# Similarly, for FizzBuzzJazz now we would just have three
|
|
||||||
# conditions to check for divisibility.
|
|
||||||
|
|
||||||
# Complexity Analysis
|
# Complexity Analysis
|
||||||
#
|
#
|
Loading…
Reference in a new issue