摘要:
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana... 阅读全文
posted @ 2014-07-04 23:32
OpenSoucre
阅读(155)
评论(0)
推荐(0)
摘要:
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题目的意思是:给出一组字符串,按组返回拥有相同变位词的字符串解题思路是: ... 阅读全文
posted @ 2014-07-04 21:40
OpenSoucre
阅读(126)
评论(0)
推荐(0)
摘要:
You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenati... 阅读全文
posted @ 2014-07-04 18:26
OpenSoucre
阅读(323)
评论(0)
推荐(0)
摘要:
Divide two integers without using multiplication, division and mod operator.不用乘、除、求余操作,返回两整数相除的结果,结果也是整数。假设除数是2,相除的商就是被除数二进制表示向右移动一位。假设被除数是a,除数是b,因为不知... 阅读全文
posted @ 2014-07-04 17:54
OpenSoucre
阅读(158)
评论(0)
推荐(0)
摘要:
Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You have the fol... 阅读全文
posted @ 2014-07-04 17:03
OpenSoucre
阅读(178)
评论(0)
推荐(0)
摘要:
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文
posted @ 2014-07-04 13:06
OpenSoucre
阅读(200)
评论(0)
推荐(0)
摘要:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2014-07-04 12:04
OpenSoucre
阅读(239)
评论(0)
推荐(0)
摘要:
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ... 阅读全文
posted @ 2014-07-04 11:44
OpenSoucre
阅读(249)
评论(0)
推荐(0)
摘要:
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m... 阅读全文
posted @ 2014-07-04 11:18
OpenSoucre
阅读(210)
评论(0)
推荐(0)
摘要:
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen... 阅读全文
posted @ 2014-07-04 10:55
OpenSoucre
阅读(179)
评论(0)
推荐(0)
摘要:
There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requi... 阅读全文
posted @ 2014-07-04 10:32
OpenSoucre
阅读(129)
评论(0)
推荐(0)
摘要:
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2014-07-04 10:13
OpenSoucre
阅读(207)
评论(0)
推荐(0)
摘要:
Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximu... 阅读全文
posted @ 2014-07-04 09:56
OpenSoucre
阅读(241)
评论(0)
推荐(0)

浙公网安备 33010602011771号