
#include #include #include typedef struct Trie { char data[9]; //단어의 길이는 1~8까지다. (널문자 공간 1 비어놓아야 한다) struct Trie * next; struct Trie * child;}Trie;Trie * insert(Trie * root, char str[]) { Trie * newNode = malloc(sizeof(Trie)); newNode->next = NULL; newNode->child = NULL; strcpy(newNode->data, str); Trie * p = root->child; Trie * bp = NULL; // before p if(p!=..

#include #include #include typedef struct Trie { char data[16]; struct Trie * next; struct Trie * child;}Trie;Trie * insert(Trie * root, char str[]) { //Trie 삽입 Trie * newNode = malloc(sizeof(Trie)); //새로운 노드 만들고 newNode->next = NULL; //초기화 newNode->child = NULL; //초기화 strcpy(newNode->data, str); //문자열 복사 Trie * p = root->child; //루트의 자식 주소 복사 Trie * bp = NULL; // ..
- Total
- Today
- Yesterday
- find
- 스택
- C++
- 그리디
- union
- java
- DP
- 플로이드
- PASCAL
- Segment Tree
- 정렬
- Lazy Propagation
- 백준
- DFS
- 세그먼트 트리
- 1835번
- XOR
- 브루트포스
- 덱
- 오프라인 쿼리
- 최소 스패닝 트리
- 최대공약수
- BFS
- C언어
- 누적합
- 그래프
- Krustal
- 기하학
- 누적 합
- 1835
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |