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