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
- BFS
- C++1167
- 가장 긴 증가하는 부분 수열
- 인덱스 트리
- 백트래킹
- 다익스트라
- 조합
- 소트 게임
- 문자열
- strtok
- 백준 17071
- DP
- LIS
- C++1967
- c언어
- 16933
- 투포인터
- C++ 1937
- 조합론
- 순열
- C++ 1918
- DFS
- 위상정렬
- 백준
- C++
- 프로그래머스
- Backtracking
- 백준 숨바꼭질5
- 알고리즘
- C++ 17071
Archives
- Today
- Total
목록최소공통조상 (1)
블로그
[8일차] 그래프1 D - 11438: LCA 2
플래티넘 Ⅴ #include #include #include #define MAX 17 using namespace std; int N, M; vector adjList[100001];//dfs 하려고 있는거임 bool visit[100001] = { 0, }; int depth[100001] = { 0, }; int dp[100001][MAX + 1] = { 0, }; //int node, int depth void dfs(int n, int d) { visit[n] = true; depth[n] = d; for (int i = 0; i < adjList[n].size(); i++) { int nextNode = adjList[n][i]; if (visit[nextNode]) continue; dp[n..
SDS ( -> PS)
2022. 1. 12. 23:11