일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- MYSQL
- DP
- 그래프
- Stored Procedure
- two pointer
- 다익스트라
- Two Points
- 이진탐색
- binary search
- SQL
- Trie
- 스토어드 프로시저
- String
- Hash
- Dijkstra
- Brute Force
- union find
Archives
- Today
- Total
목록Algorithm (2)
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