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 | 31 |
Tags
- the maximum subarray
- ice cream parlor
- lock based queue
- two characters
- DirectX
- 프로그래밍공부
- 브루트포스
- DirectX12
- boj 11657
- 지게차와 크레인
- pccp 기출문제 풀이
- boj 1074
- lock free stack
- special string again
- pcce 기출문제 풀이
- find the town judge
- boj 1717
- making anagrams
- the longest increasing subsequence
- count triplets
- 2025 프로그래머스 코딩챌린지 1차예선
- LCS
- boj 6443
- PCCE
- find the running median
- string construction
- lock based stack
- 비밀 코드 해독
- c++
- dp
Archives
- Today
- Total
목록the maximum subarray (1)
오구의코딩모험

코딩테스트 대비를 위해해커랭크에서 누적합 / 이분 탐색 / 힙 / 투 포인터 관련 알고리즘연습하기..! 1. The Maximum Subarray (Normal) 📌 문제 요약주어진 배열로 만들 수 있는 부분 배열 중연속적인 원소들의 최대 합과 단순 최대 합을 구하라. 구현 코드vector maxSubarray(vector arr) { vector answer; int addNum[100001]; fill(addNum, addNum+arr.size()+1, 0); addNum[0] = arr[0]; for(int i=1; i0) positive += num; if(positive == 0) positive = *max_element(arr.begin(), a..
프로그래밍 공부/해커랭크
2025. 5. 5. 23:05