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
- python Leetcode
- 코틀린기초
- 릿코드풀이
- python zip_longest
- python priority queue
- 릿코드 파이썬
- leetcode 풀기
- python sorted
- leetcode풀이
- 파이썬 릿코드
- 파이썬알고리즘풀기
- python 릿코드
- 파이썬 알고리즘
- 릿코드풀기
- 파이썬릿코드풀기
- 알고리즘풀이
- 알고리즘풀기
- LeetCode
- python 알고리즘
- binary search
- 잇츠디모
- 파이썬 프로그래머스
- 릿코드
- 파이썬릿코드
- leetcode풀기
- 상가수익률계산기
- 파이썬 알고리즘 풀기
- python xor
- 파이썬알고리즘
- 릿코드 풀기
Archives
- Today
- Total
목록릿코드 문제 풀기 (1)
소프트웨어에 대한 모든 것

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
알고리즘/LeetCode
2021. 11. 12. 08:34