티스토리 뷰
반응형
3의 배수, 5의 배수 , 15의 배수일때에 따른 배열 출력
class Solution:
def fizzBuzz(self, n: int) -> List[str]:
return [ "Fizz"*(i%3==0) + "Buzz"*(i%5==0) or str(i) for i in range(1,n+1)]
배열안에서 바로 작업
반응형
'LeetCode' 카테고리의 다른 글
[LeetCode/Python] 1672. Richest Customer Wealth (0) | 2025.05.10 |
---|---|
[LeetCode/Python] 1480. Running Sum of 1d Array (0) | 2025.05.10 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- datalabeling
- helm
- 42서울
- CloudFlare
- 비동기
- next.js
- asyncio
- supervised
- SSR
- create_task
- asyncio.gather
- 윈도우pscale설치
- un-supervised
- 위즈윅에디터
- planetscale배포
- ADT
- kubectl
- iris
- 우테코
- semi-supervised
- nextj이미지저장
- pscale
- nodejs
- 대수자료구조
- window
- k8s
- Python
- 타입스크립트
- 함수형프로그래밍
- Tailwind
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
글 보관함