摘要: Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ... 阅读全文
posted @ 2015-08-24 20:01 Sean_le 阅读(141) 评论(0) 推荐(0)
摘要: Repeated DNA SequencesAll DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it i... 阅读全文
posted @ 2015-08-24 14:54 Sean_le 阅读(117) 评论(0) 推荐(0)
摘要: 4SumGiven an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum... 阅读全文
posted @ 2015-08-24 13:53 Sean_le 阅读(117) 评论(0) 推荐(0)
摘要: 3SumGiven 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:El... 阅读全文
posted @ 2015-08-24 12:12 Sean_le 阅读(180) 评论(0) 推荐(0)