data-structures-and-algorithms

data-structures-and-algorithms

View on GitHub

tree_fizz_buzz

If the value is divisible by 3, replace the value with “Fizz”

If the value is divisible by 5, replace the value with “Buzz”

If the value is divisible by 3 and 5, replace the value with “FizzBuzz”

If the value is not divisible by 3 or 5, simply turn the number into a String.


BIG O_____

Solution

replace the value with “Fizz” If the Node value is divisible by 3,

replace the value with “Buzz” If the Node value is divisible by 5,

replace the value with “FizzBuzz” If the Node value is divisible by 3 and 5,

simply turn the number into a String. If the Node value is not divisible by 3 or 5,


whiteboard proces