leetcode
[LeetCode] 53. Maximum Subarray
문제 링크 : leetcode.com/problems/maximum-subarray/ Maximum Subarray - 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 주어진 배열 속 연속된 배열에서의 최대값을 찾는 문제이다. 일반적으로 생각할 수 있는 방법은 배열 전체 탐색법이다. 아래와 같이 모든 가능한 연속된 배열의 경우를 계산하여 최대값을 찾는 방법이다. def maxSubArrayLoop(self, nums: List[int]) -> int: maxval..