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