일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 파이썬 알고리즘
- 릿코드풀기
- 파이썬릿코드풀기
- 파이썬 알고리즘 풀기
- python sorted
- 알고리즘풀기
- LeetCode
- leetcode풀이
- 파이썬릿코드
- python priority queue
- 파이썬 릿코드
- python Leetcode
- 파이썬알고리즘풀기
- 파이썬알고리즘
- 알고리즘풀이
- python xor
- 릿코드
- python 알고리즘
- python zip_longest
- 파이썬 프로그래머스
- 잇츠디모
- python 릿코드
- 릿코드 파이썬
- leetcode 풀기
- 릿코드풀이
- leetcode풀기
- binary search
- 코틀린기초
- 릿코드 풀기
- 상가수익률계산기
- Today
- Total
목록파이썬 알고리즘 풀기 (6)
소프트웨어에 대한 모든 것
1356. Sort Integers by The Number of 1 Bits https://leetcode.com/problems/sort-integers-by-the-number-of-1-bits/ Sort Integers by The Number of 1 Bits - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제) 솔루션1) class Solution: def sortByBits(self, arr: List[int]) -> List[int]: d = ..
1380. Lucky Numbers in a Matrix https://leetcode.com/problems/lucky-numbers-in-a-matrix/ Lucky Numbers in a Matrix - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제) 솔루션1) class Solution: def luckyNumbers (self, matrix: List[List[int]]) -> List[int]: n_row = len(matrix) n_col = ..
973. K Closest Points to Origin https://leetcode.com/problems/k-closest-points-to-origin/ K Closest Points to Origin - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제) 솔루션1) class Solution: def kClosest(self, points: List[List[int]], k: int) -> List[List[int]]: distances = [] fo..
1742. Maximum Number of Balls in a Box https://leetcode.com/problems/maximum-number-of-balls-in-a-box/ Maximum Number of Balls in a Box - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 제목 문제) 솔루션1) class Solution: def countBalls(self, lowLimit: int, highLimit: int) -> int: d = def..
2053. Kth Distinct String in an Array https://leetcode.com/problems/kth-distinct-string-in-an-array/ Kth Distinct String in an Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제) 솔루션1) dict 사용 class Solution: def kthDistinct(self, arr: List[str], k: int) -> str: d = {} for ..
1413. Minimum Value to Get Positive Step by Step Sum 문제) 솔루션1) class Solution: def minStartValue(self, nums: List[int]) -> int: if nums[0] > 0: start = 1 else: start = abs(nums[0]) + 1 while True: r = start for n in nums: if r+n int: return abs(min(accumulate(nums, initial=0))) + 1