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
- 채보
- C#
- VS Code
- Python
- OpenCV
- paramiko
- Visual Studio
- pytorch
- C++
- ubuntu
- YOLO
- error
- C
- Linux
- 오류
- Selenium
- mysql
- pandas
- JSON
- 컨테이너
- nvidia-smi
- label
- SSH
- pip
- 프로그래머스
- windows forms
- 기타 연주
- Docker
- 핑거스타일
- Numpy
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