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
- find the running median
- DirectX
- 3dgs
- pcce 기출문제 풀이
- gaussian splatting
- making anagrams
- lock free stack
- gas
- PCCE
- the maximum subarray
- LCS
- DirectX12
- the longest increasing subsequence
- ice cream parlor
- boj 5719
- 브루트포스
- lock based queue
- 프로그래밍공부
- 가우시안 스플래팅
- c++
- special string again
- find the town judge
- 2025 프로그래머스 코딩챌린지 1차예선
- dp
- count triplets
- two characters
- boj 1717
- pccp 기출문제 풀이
- boj 11657
- string construction
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