Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- GIT
- MongoDB
- nestjs
- Bull
- MySQL
- Dinosaur
- react
- Queue
- class
- OCR
- AWS
- 게임
- game
- flask
- Express
- dfs
- Sequelize
- 공룡게임
- nodejs
- Python
- JavaScript
- cookie
- jest
- mongoose
- typeORM
- 정렬
- Nest.js
- TypeScript
- 자료구조
Archives
- Today
- Total
목록GCD (1)
포시코딩
[프로그래머스][Lv.0] 유한소수 판별하기*
문제 https://school.programmers.co.kr/learn/courses/30/lessons/120878 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 내 풀이 def solution(a, b): gcd = getGcd(a, b) target = b // gcd l = [] x = 2 while target != 1: if target % x == 0: l.append(x) target /= x x = 2 else: x += 1 l = list(set(l)) if 2 in l: l.remove(2) if 5 in l: l.remove(5)..
자료구조알고리즘/문제풀이
2023. 1. 10. 11:49