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