---
# System prepended metadata

title: 2023/07/02(日) 每週 LeetCode 刷題
tags: [AC LeetCode 刷題讀書會 - 2023]

---

---
tags: AC LeetCode 刷題讀書會 - 2023
---

#  2023/07/02(日) 每週 LeetCode 刷題

## 刷題題號
-  [412. Fizz Buzz](https://leetcode.com/problems/fizz-buzz/)

## 解題思路
Given an integer n, return a string array answer (1-indexed) where:
<pre style='background-color:#ggg'>
給予一個整數 n，回傳字對應字串的陣列答案，需符合以下條件：

answer[i] == "FizzBuzz" if i is divisible by 3 and 5.
answer[i] == "Fizz" if i is divisible by 3.
answer[i] == "Buzz" if i is divisible by 5.
answer[i] == i (as a string) if none of the above conditions are true.

ex.當 n 符合 15, 3, 5 的倍數時，回傳對應的字串，否則回傳原序列的數值。
</pre>


## 回報格式

- 請 Fork 此 Replit 連結(https://replit.com/@AllenLi23/AC-LeetCode-Js-412-Fizz-Buzz)後，進行程式碼解題，並於完成後更新到 Replit 中，再將連結貼至「解題分享區」來與大家交流做法。


解題分享區
---


讀書會議流程：

ex. 21:05開始 

#簽到表：
https://docs.google.com/spreadsheets/d/1gc16rrF-yZNs845z_nYrdgDIiSECOJok30dNLyQm69A/edit#gid=534323210

1. 題目說明。
2. 題目解析(BigO(n))。
4. 成員分享解題思路。
5. 問題與討論。


<!-- No.0 (請依序排序下去)
name: name (回報範例)
lighthouse: lighthouse
Replit：https://replit.com/@AllenLi23/AC-LeetCode-Js-412-Fizz-Buzz-Allen
-->

<!-- NO.1
name: Kai
lighthouse: pythonforeye@gmail.com
Replit: https://replit.com/@Beginneraboutli/AC-LeetCode-Js-412-Fizz-Buzz#index.js
-->

<!-- NO.2
name: vanessa
lighthouse: mali7591@hotmail.com
Replit: https://replit.com/@vanessalin3/AC-LeetCode-Js-412-Fizz-Buzz#index.js
-->

<!-- No.3
name: Jack Hung
lighthouse: lhhungx@gmail.com
Replit：https://replit.com/@LungHsuanHung/AC-LeetCode-Go-412-Fizz-Buzz#main.go
-->

<!-- No.4
name: Jerry
lighthouse: jerry12011013@gmail.com
Replit：https://replit.com/@Jerry-Chang975/AC-LeetCode-Js-412-Fizz-Buzz#index.js
-->

<!-- No.5
name: Ken
lighthouse: ken.chang07242@gmail.com
Replit：https://leetcode.com/problems/fizz-buzz/submissions/
-->

<!-- No.6
name: bun
lighthouse: bun.coding07242@gmail.com
Replit：https://replit.com/@Shu-YinChen/AC-LeetCode-Js-412-Fizz-Buzz#index.js
-->

<!-- No.7
name: BenWang
lighthouse: a84012807@gmail.com
Replit：https://replit.com/@a84012807/AC-LeetCode-Js-412-Fizz-Buzz#index.js
-->

<!-- No.8
name: Peggy
lighthouse: peggy8865@gmail.com
Replit：https://replit.com/@peggy8865/AC-LeetCode-Js-412-Fizz-Buzz#index.js
-->