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