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
- Numpy
- 컨테이너
- Visual Studio
- pip
- nvidia-smi
- pytorch
- YOLO
- 채보
- C#
- label
- error
- JSON
- 핑거스타일
- SSH
- OpenCV
- 기타 연주
- mysql
- paramiko
- Linux
- VS Code
- C
- windows forms
- 프로그래머스
- Python
- 오류
- C++
- ubuntu
- Docker
- pandas
- Selenium
Archives
- Today
- Total
목록BFS (1)
기계는 거짓말하지 않는다

프로그래머스 - 단어 변환 문제입니다. BFS를 사용하여 시작 단어부터 문자가 단 1개 차이나는 단어를 depth를 늘려 추가해야겠다는 생각을 했습니다. #include #include #include using namespace std; class WordDepth { public: string word; int depth; WordDepth() {} WordDepth(string word, int depth) { this->word = word; this->depth = depth; } }; int solution(string begin, string target, vector words) { int i, j, differCnt = 0; bool check = false; vector wordChec..
Programming Test
2021. 4. 25. 19:36