일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- python
- TypeError: 'property' object is not iterable
- AWS
- 우아한 테크코스 2차 합격
- 갓재석
- OperationalError
- 재귀함수가 뭔가요
- depends
- EC2
- javascript
- Django
- 코딩테스트
- github skyline
- MySQL server on 'db' (115)
- 우아한테크코스 2차
- 프로그래머스
- depends_on
- github
- METACLASS
- springboot 3.0.0
- docker-compose
- DB
- python all testcode
- docker
- classmethod
- classproperty
- S3
- Spring
- 2차 코딩테스트
- AWS S3
Archives
목록프로그래머스 기능개발 (1)
hanbin.dev
[코딩테스트] 프로그래머스 기능개발 with javascript
문제 풀이 코드 function solution(progresses, speeds) { var answer = []; var count = 0; var time = 0; // #1 while(progresses.length > 0){ if ((progresses[0] + speeds[0] * time) >= 100 ){ // #2 count += 1; progresses.splice(0,1); speeds.splice(0,1); time -= 1; // #3 } else { if (count > 0){ answer.push(count); // #4 count = 0; } } time += 1; } answer.push(count); return answer; } FIFO 구조에서 착안해서 코딩했다. #1..
코딩테스트
2021. 5. 7. 14:03