摘要:
题目链接。分析:对于该题,使用的是字典树。暴力。不过一开始忽略了个问题:对于第三个inserting of one arbitrary letter into the word.忽略了一种情况。那就是有字符串中含有相邻的相同字符。例如,aab,在0号插入a和1号插入a,新得到的字符串都是aaab。在输出时注意下就行了。#include <stdio.h>#include <stdlib.h>#include <string.h>typedef struct TrieNode{ int flag, order; struct TrieNode *next[27 阅读全文
posted @ 2013-03-29 23:35
Still_Raining
阅读(172)
评论(0)
推荐(0)
浙公网安备 33010602011771号