Brief docstring: "Return list of strings for integers 1..n with Fizz/Buzz rules; empty list if n <= 0."
ALGORITHM
IF n <= 0 THEN RETURN []
RESULT: List[str] <- []
FOR i FROM 1 TO n INCLUSIVE DO
S: str <- ""
IF i MOD 3 == 0 THEN S <- S + "Fizz"
IF i MOD 5 == 0 THEN S <- S + "Buzz"
IF S == "" THEN S <- STRING(i)
APPEND S TO RESULT
RETURN RESULT
FILE LAYOUT & IMPORT DETAILS
Create/ensure module at src/leetcode_412_fizz_buzz.py
Tests import path: from src.leetcode_412_fizz_buzz import Solution
Instantiate and call: Solution().fizzBuzz(n)
No external dependencies beyond Python standard library
EDGE CASES
If n <= 0: return []
TYPING REQUIREMENTS
Use Python 3 type hints: List[str]
ACCEPTANCE CRITERIA (TESTS)
fizzBuzz(3) -> ["1", "2", "Fizz"]
fizzBuzz(5) -> ["1", "2", "Fizz", "4", "Buzz"]
fizzBuzz(15) -> sequence from 1 to 15 with "Fizz" for multiples of 3, "Buzz" for multiples of 5, and "FizzBuzz" for multiples of both; numbers otherwise as strings