Description Isabella and Steve are very good friends, and they often write letters to each other. They exchange funny experiences, talk about people a ...
分类:
其他好文 时间:
2017-11-06 20:11:11
阅读次数:
200
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2017-11-05 11:27:28
阅读次数:
134
Problem Statement We have a string s consisting of lowercase English letters. Snuke is partitioning s into some number of non-empty substrings. Let th ...
分类:
其他好文 时间:
2017-11-03 22:03:57
阅读次数:
273
Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below. Examp ...
分类:
其他好文 时间:
2017-10-28 17:50:42
阅读次数:
199
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:
其他好文 时间:
2017-10-25 13:07:03
阅读次数:
124
跟着Bag of Words Meets Bags of Popcorn的初学者实例,敲了一遍代码。主要用到的是CountVectorizer,生成每个评论的词频向量,然后利用随机森林建立模型,对新的评论进行预测。提交之后,分数大概为0.84。 ...
分类:
编程语言 时间:
2017-10-24 11:34:57
阅读次数:
230
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2017-10-23 21:44:26
阅读次数:
148
Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters. This ...
分类:
其他好文 时间:
2017-10-23 21:41:02
阅读次数:
144
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2017-10-23 21:40:38
阅读次数:
157
Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below. Examp ...
分类:
其他好文 时间:
2017-10-23 20:49:25
阅读次数:
117