Hongjoo/ 6월 4주차 / 4문제 #228
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🌱WIL
🚀주간 목표 문제 수: 4개
백준 #1753. 최단경로: 그래프/ 골드4
정리한 링크: (바로가기)
🚩플로우 (선택)
🚩제출한 코드
프로그래머스 #49993. 스킬트리: 구현 / lv2
정리한 링크: (바로가기)
🚩플로우 (선택)
=> 해당 글자가 skill 리스트 속 위치 번호 찾기(i=2)
=> if skill의 확인한 set_p과 같음 -> set+=1 , okay
=> set_p 보다 i가 뒤에 있을때 -> False
🚩제출한 코드
프로그래머스 #17684. 3차_압축: 구현 / lv2
정리한 링크: (바로가기)
🚩플로우 (선택)
탐색할 입력 단어의 범위를 포인터 w_s 와 변수 w_l 로 초기화한다.
입력 단어 전체를 반복문을 사용해 탐색하기 (w_s + w_l ≤ len(입력단어)
탐색 단어(word[w_s : w_s + w_l] 가 사전에 존재하면
→ 최대 길이 w 단어 인덱스(prev_idx)을 사전 속 인덱스 값으로 업데이트
→ continue
사전에 존재하지 않으면
마지막 사전 인덱스 출력 리스트 answer 추가하기(예외처리)
🚩제출한 코드
프로그래머스 #42586. 기능개발: 구현 / lv2
정리한 링크: (바로가기)
🚩플로우 (선택)
각 progress 에 대해 개발 완료 까지 추가 Days 계산하기
같은 배포일을 가진 서비스 개수 구하기
deque 로 develop_day 보다 더 빠르게 종료되는 서비스들은 pop & 배포 서비스 개수 +1
develop_day보다 더 개발완료 까지 오래 걸리는 서비스을 만날 경우 , 그 전 서비스 까지 한번에 배포 진행
→ 그전 서비스 개수를 정답 answer리스트에 추가
🚩제출한 코드