Fizz Buzz
Intuition\nMod Check == 0\n\n\n# Complexity\n- Time complexity: O(n)\n- Space complexity: O(n)\n\n# Code\nC# []\npublic class Solution {\n  public IList<string>
# Intuition\nMod Check == 0\n\n\n# Complexity\n- Time complexity: O(n)\n- Space complexity: O(n)\n\n# Code\n``` C# []\npublic class Solution {\n  public IList<string> FizzBuzz(int n) {\n    var zzList = new List<String>(n);\n\n    for (int i = 1; i <= n; i++)\n    {\n      var temp = "";\n      if (i % 3 == 0) temp = "Fizz";\n      if (i % 5 == 0) temp += "Buzz";\n      zzList.Add(string.IsNullOrWhiteSpace(temp) ? i.ToString() : temp);\n    }\n\n    return zzList;\n  }\n}\n\n```\n```typescript []\nfunction fizzBuzz(n: number): string[] {\n  let zzList: string[] = Array(n);\n\n  for(let i = 1; i <= n; i++){\n    let temp = "";\n    if(i % 3 == 0) temp = "Fizz";\n    if(i % 5 == 0) temp += "Buzz";\n    zzList[i-1] = temp === "" ? i.toString() : temp;\n  }\n\n  return zzList;\n};\n\n```\n```python []\nclass Solution:\n  def fizzBuzz(self, n: int) -> List[str]:\n    zzList = []\n    for i in range(1, n+1):\n      temp = ""\n      if (i%3 == 0):\n        temp = "Fizz"\n      if (i%5 == 0):\n        temp += "Buzz"\n      zzList.append(str(i) if temp == "" else temp)\n\n    return zzList\n\n```\n```php []\nclass Solution {\n    function fizzBuzz($n) {\n      $zzList = array_fill(1,$n,""); //O(n)\n      \n      for ($i = 1; $i <= $n; $i++){\n        $temp = "";\n        if($i % 3 == 0) $temp = "Fizz";\n        if($i % 5 == 0) $temp .= "Buzz";\n        $zzList[$i] = $temp === "" ? strval($i) : $temp;\n      }\n      \n      return $zzList;\n    }\n}\n\n```
['PHP', 'TypeScript', 'Python3', 'C#']