일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- sting position
- Python
- 프로그래머스
- 알고리즘
- list to set
- List to String
- Unknown command: cask
- RecursionError
- Python 나머지
- List 초기화
- cask
- List
- COUNT
- sort()
- string
- Boto3
- zip()
- 알고리즘 풀이
- Modified Date
- python3
- homebrew-core is a shallow clone.
- Split
- permutations
- list.pop(0)
- index
- Python 몫
- Algorithm
- list.sorted()
- 피보나치 수
- set to list
- Today
- Total
목록COUNT (2)
데이터와 코드로 세상을 바라봅니다.
[LRU - 개념] 가장 최근에 사용되지 않은 것 페이지에서 제거할 때 가장 오랫동안 사용하지 않은 것을 제거하겠다는 알고리즘이다. 이 알고리즘의 기본 가설은 가장 오랫동안 사용하지 않았던 데이터라면 앞으로도 사용할 확률이 적다는 것. def solution(cacheSize, cities): answer = 0 cache_list = [] cache_age = [] for j in range(0, len(cities)): cities[j] = str(cities[j]).upper() for i in range(0, len(cities)): if cacheSize == 0 : answer = 5*len(cities) break if cache_list.count(cities[i]) == 1 : for a..
[코드] def solution(s): return s.lower().count('p')==s.lower().count('y') [참고자료] www.geeksforgeeks.org/isupper-islower-lower-upper-python-applications/ isupper(), islower(), lower(), upper() in Python and their applications - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/c..