Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo... ...
分类:
其他好文 时间:
2017-11-16 23:51:56
阅读次数:
165
题目:Write a function to find the longest common prefix string amongst an array of strings. 这题的意思是,求字符串数组中的所有字符串的公共头。 解题思路:由于要求所有字符串的公共头,和求几个整数的公约数一样。我们 ...
分类:
其他好文 时间:
2017-11-13 19:53:57
阅读次数:
145
题目链接:https://leetcode.com/problems/longest-substring-without-repeating-characters/description/ 题目大意:找出一串字符串的无重复子串。例子如下: 法一:两层for循环,一个字符一个字符的遍历其后是否有子串, ...
分类:
其他好文 时间:
2017-11-13 11:29:01
阅读次数:
137
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo ...
分类:
其他好文 时间:
2017-11-11 11:28:04
阅读次数:
107
Nov, 9, 2017. https://leetcode.com/problemset/algorithms/?topicSlugs=union-find%2Clinked-list Given an unsorted array of integers, find the length of ...
分类:
其他好文 时间:
2017-11-10 00:30:55
阅读次数:
128
一、Redis 简介 1.1 Redis是什么 REmote DIctionary Server(Redis) 是一个由Salvatore Sanfilippo写的key-value存储系统。Redis提供了一些丰富的数据结构,包括 lists, sets, ordered sets 以及 hash ...
分类:
其他好文 时间:
2017-11-09 14:48:26
阅读次数:
130
/** * indexOf("字符",位置int) //在方法中,只输入第一个属性默认从头开始查找属性中的字符,位置int表示从输入的int位置之后查找字符 * lastIndexOf("字符") //从字符串中,查找最后一个属性中的字符 * str="www.oracle.com"; //subs ...
分类:
编程语言 时间:
2017-11-07 23:59:57
阅读次数:
480
Given a list of strings words representing an English Dictionary, find the longest word in words that can be built one character at a time by other wo ...
分类:
其他好文 时间:
2017-11-06 19:13:26
阅读次数:
142
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
Given a permutation which may contain repeated numbers, find its index in all the permutations of these numbers, which are ordered in lexicographical ...
分类:
其他好文 时间:
2017-11-05 10:50:55
阅读次数:
202