摘要: 题目描述:You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a ... 阅读全文
posted @ 2015-05-16 16:06 scottwang 阅读(1250) 评论(0) 推荐(1) 编辑
摘要: 题目描述:Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.解题思路:把除数表示为:dividend = 2^i * diviso... 阅读全文
posted @ 2015-05-16 11:49 scottwang 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Update (2014-11-02):... 阅读全文
posted @ 2015-05-16 10:22 scottwang 阅读(322) 评论(0) 推荐(0) 编辑