일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- DP
- SQL
- 스토어드 프로시저
- 그래프
- binary search
- union find
- String
- 이진탐색
- two pointer
- Trie
- Two Points
- MYSQL
- Hash
- Stored Procedure
- Dijkstra
- 다익스트라
- Brute Force
Archives
- Today
- Total
목록2025/05/28 (1)
codingfarm
C++ 문자열 snippet codes
1. split#include #include #include using namespace std;vector split(const string& str, char delimiter) { vector result; size_t start = 0; // 시작 인덱스 size_t end; while ((end = str.find(delimiter, start)) != string::npos) { result.push_back(str.substr(start, end - start)); // 부분 문자열 추출 start = end + 1; // 다음 시작 지점으로 이동 } // 마지막 토큰 처리 result.push_back(str.substr..
Algorithm
2025. 5. 28. 18:58