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

자료구조 Trie를 변형해서 풀 수 있는 문제map로 next에 key값으로 string, value에 Trie의 포인터 값을 저장하게끔 map을 만들어 준 후, input 데이터를 저장해준다.dfs형식의 print 함수를 적절히 만들어 next에 저장된 tree 형식의 데이터를 출력 #include#include#include#include#includeusing namespace std;struct Trie { bool finish; map next; Trie() :finish(false) {}; ~Trie() { for (auto it = next.begin(); it != next.end(); it++) delete(it->second); }; void insert(vector vec, in..
알고리즘/Baekjoon
2025. 3. 7. 00:04