일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Python Implementation
- Decorator
- 715. Range Module
- 30. Substring with Concatenation of All Words
- kaggle
- attribute
- 밴픽
- Substring with Concatenation of All Words
- Class
- 109. Convert Sorted List to Binary Search Tree
- 컴퓨터의 구조
- Generator
- Python
- 시바견
- 운영체제
- 파이썬
- LeetCode
- 315. Count of Smaller Numbers After Self
- shiba
- Protocol
- concurrency
- DWG
- 프로그래머스
- Regular Expression
- 43. Multiply Strings
- t1
- Python Code
- data science
- iterator
- Convert Sorted List to Binary Search Tree
Archives
- Today
- Total
목록465. Optimal Account Balancing (1)
Scribbling
LeetCode: 465. Optimal Account Balancing
First, we look through all the transactions and check how much money(or debt) each one has. Array self.money is storing that information, and we excluded the ones who don't have any money or debt. Next, let's define "helper(self, indexs)" as our goal function. It will return 'min # of transactions needed'. Here, we take indexes (tuple type) as the parameter of the function so that we can easily ..
Computer Science/Coding Test
2022. 2. 17. 20:19