일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- leetcode풀기
- LeetCode
- 파이썬 프로그래머스
- python xor
- 상가수익률계산기
- binary search
- 파이썬알고리즘
- python 릿코드
- 파이썬릿코드
- 잇츠디모
- 릿코드
- leetcode풀이
- leetcode 풀기
- 릿코드풀기
- 알고리즘풀이
- 파이썬 알고리즘
- 파이썬릿코드풀기
- python sorted
- python 알고리즘
- 릿코드 풀기
- 파이썬 릿코드
- 파이썬 알고리즘 풀기
- python zip_longest
- 릿코드풀이
- 릿코드 파이썬
- python priority queue
- 알고리즘풀기
- 파이썬알고리즘풀기
- python Leetcode
- 코틀린기초
- Today
- Total
목록알고리즘/LeetCode (177)
소프트웨어에 대한 모든 것
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 ..
1304. Find N Unique Integers Sum up to Zero https://leetcode.com/problems/find-n-unique-integers-sum-up-to-zero/ Find N Unique Integers Sum up to Zero - 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) Straight forward n 숫자가 주어지면 유니크한 숫자 n개를 더했을 때 0를 만드는 array를 구하는 문제입니다. ..
1382. Balance a Binary Search Tree https://leetcode.com/problems/balance-a-binary-search-tree/ Balance a Binary Search Tree - 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) - Bianry Search Tree 풀이 전략: 넘겨 받은 root 트리를 inorder 순회하여 정렬된 val를 리스트를(nums) 구성 Binary Search Tree ..
1551. Minimum Operations to Make Array Equal https://leetcode.com/problems/minimum-operations-to-make-array-equal/ Minimum Operations to Make Array Equal - 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) - Straight Forward mid를 구하고 arr의 길이가 짝수인 경우와 홀수인 경우를 나눠서 생각하며 쉽게 풀립니..
1572. Matrix Diagonal Sum https://leetcode.com/problems/matrix-diagonal-sum/ Matrix Diagonal Sum - 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) - Straight forward 왼쪽 상단에서 부터 오른쪽 하단으로 탐색하면서 더합니다. 오른쪽 상단에서 부터 왼쪽 하단으로 탐색하면서 더합니다. 만약 매트릭스가 row가 홀수 크기로 되어 있다면 중간에 원소를 두 번 더했..
1290. Convert Binary Number in a Linked List to Integer https://leetcode.com/problems/convert-binary-number-in-a-linked-list-to-integer/ Convert Binary Number in a Linked List to Integer - 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) # Definition for singly-linked list..
1486. XOR Operation in an Array https://leetcode.com/problems/xor-operation-in-an-array/ XOR Operation 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) class Solution: def xorOperation(self, n: int, start: int) -> int: res = start for i in range(1, n): res ^=..