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
- 가상메모리 관리
- level1
- 프로그래머스
- 수학
- 힙
- DP
- 백준
- 브루트포스
- dict
- level3
- programmers
- python
- 코딩테스트
- 그리디
- BOJ
- 가상메모리
- MYSQL
- 스택
- level2
- 파이썬
- N과M
- 재귀
- 딕셔너리
- dfs
- 운영체제
- 다이나믹 프로그래밍
- 구현
- level0
- 다익스트라
- BFS
Archives
- Today
- Total
목록문자열 압축 (1)
동캄의 코딩도장
프로그래머스 level2 [문자열 압축] 파이썬
https://programmers.co.kr/learn/courses/30/lessons/60057 코딩테스트 연습 - 문자열 압축 데이터 처리 전문가가 되고 싶은 "어피치"는 문자열을 압축하는 방법에 대해 공부를 하고 있습니다. 최근에 대량의 데이터 처리를 위한 간단한 비손실 압축 방법에 대해 공부를 하고 있는데, 문 programmers.co.kr #프로그래머스 문자열 압축 def solution(s): answer = 0 for i in range(1,(len(s)//2)+1): cnt=1 lst=[] j=0 previous='' while (j+i)1: lst.append(cnt-1) gain=0 for k in range(len(lst)): gain+=lst[k]*i-len(str(lst[k]..
코테/프로그래머스
2021. 12. 9. 22:44