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
- 리액트
- maeil-mail
- react-router
- react
- 이코테
- redux
- redux-toolkit
- redux-saga
- Python
- 테코테코
- 코딩테스트합격자되기
- 알고리즘
- C++
- axios
- useDispatch
- Get
- 매일메일
- JavaScript
- 프로그래머스
- SW
- programmers
- java
- 항해99
- Algorithm
- react-redux
- 자바
- createSlice
- json-server
- 항해플러스
- sw expert academy
Archives
- Today
- Total
목록BFS (1)
Binary Journey

** C++ #include #include #include using namespace std; int number = 7; int visited[7]; vector arr[8]; void bfs(int start) { queue q; q.push(start); visited[start] = true; while (!q.empty()) { int x = q.front(); q.pop(); printf("%d ", x); for (int i = 0; i < arr[x].size(); i++) { int y = arr[x][i]; // 인접한 노드 방문 if(!visited[y]) { // 방문한 상태가 아니라면 q.push(y); // 담아주고 visited[y] = true; // 방문처리 } } } ..
Algorithm/알고리즘 스터디(2021.07)
2021. 9. 2. 00:29