摘要:
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo... 阅读全文
posted @ 2015-04-19 14:27
jasmine_turnsoul
阅读(202)
评论(0)
推荐(0)
摘要:
思路:前后两个指针。又一次bug free!(但是速度慢。待我想想有什么更好解法么?或者是 判断可以优化?果真!判断isCharEqual(c1,c2)时,可以优化。不需要判断c1到底是大写还是小写)如下面。 bool isCharEqual(char c1, char c2){ ... 阅读全文
posted @ 2015-04-19 13:05
jasmine_turnsoul
阅读(115)
评论(0)
推荐(0)
摘要:
Write a function to find the longest common prefix string amongst an array of strings.思路:这道题其实很简单。只不过一开始我就想复杂了,一看求Longest,就联想到DP。然后又联想到Set来求交并。后来,突然想到... 阅读全文
posted @ 2015-04-19 11:58
jasmine_turnsoul
阅读(128)
评论(0)
推荐(0)
摘要:
http://blog.csdn.net/hguisu/article/details/7856239值得详细看! 阅读全文
posted @ 2015-04-19 00:38
jasmine_turnsoul
阅读(66)
评论(0)
推荐(0)
摘要:
http://www.cnblogs.com/gogly/articles/2353804.html总结的方法值得详看! 阅读全文
posted @ 2015-04-19 00:37
jasmine_turnsoul
阅读(119)
评论(0)
推荐(0)

浙公网安备 33010602011771号