일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- map
- 그리디
- insomnia
- JavaScript
- 트라이
- Github
- ccw 알고리즘
- 그래프 탐색
- PROJECT
- vector insert
- Keys
- localstorage
- router
- branch
- trie
- 이분 탐색
- pm2
- HTTP
- MongoDB
- html5
- Next
- Express.js
- 백준 1918번
- Prisma
- 자바스크립트
- MySQL
- DP
- string
- 게임 서버 아키텍처
- ERD
Archives
- Today
- Total
목록BFS (1)
dh_0e

BFS로 풀 수 있는 간단한 문제greedy 방식이 왜 항상 최적의 값을 찾을 수 없는지 알려주기 좋은 문제같다. #include#include#includeusing namespace std;int d[101], vi[101];queue> que;int f(int cur, int c) { for (int i = 1; i pa = que.front(); que.pop(); if (pa.first == 100) { printf("%d\n", pa.second); break; } f(pa.first, pa.second); } return 0;}
알고리즘/Baekjoon
2025. 4. 9. 22:43