随笔分类 - 数据结构----字符串
kmp
摘要:给你一段新闻(标题字符串+正文字符串)求解topK热词,热词在标题中出现频率系数3,出现在正文中为1,先标题,相同就出现的先后顺序,后正文,相同就正文中出现的先后顺序。输入n,m。n表示top-n热词,m表示新闻的个数(标题+正文) 输入n,m,n表示top-n热词,m表示新闻数量,输出top-n热
阅读全文
摘要:Problem Description CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there a
阅读全文
摘要:Problem Description The French author Georges Perec (1936–1982) once wrote a book, La disparition, without the letter 'e'. He was a member of the Ouli
阅读全文
摘要:Description The little cat is so famous, that many couples tramp over hill and dale to Byteland, and asked the little cat to give names to their newly
阅读全文
摘要:Problem DescriptionGiven two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). You
阅读全文
浙公网安备 33010602011771号