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
- DP
- unordered_map
- 시스템콜
- Dijkstra
- 동적계획법
- 프로그래머스
- vector
- 코테
- 플로이드와샬
- String
- 다익스트라
- 리시프
- 문자열
- 참고 문헌 : MACHINE LEARNING 기계학습 _ 오일석
- dfs
- substr
- C++
- 코딩테스트연습
- MySQL
- 다이나믹프로그래밍
- sql고득점kit
- 최대공약수
- 스택
- set
- 백준
- 우선순위큐
- MAP
- 코테준비
- 정렬
- 알고리즘
Archives
- Today
- Total
목록queue (1)
YeJin's Footsteps

문제 링크 https://programmers.co.kr/learn/courses/30/lessons/49189 코딩테스트 연습 - 가장 먼 노드 6 [[3, 6], [4, 3], [3, 2], [1, 3], [1, 2], [2, 4], [5, 2]] 3 programmers.co.kr 문제 풀이 코드 #include #include #include #include using namespace std; const int MN = 20001; bool graph[MN][MN]; bool visited[MN]; vector ans; int BFS(int n){ queue q; //Queue 생성 q.push(1); // 초기 시작점 visited[1]= true; int level=0; while(!q.em..
Computer Science & Engineering/알고리즘
2021. 7. 8. 16:40