摘要: class Solution { public: vector<int> findSubstring(string s, vector<string>& words) { if (s.empty() || words.empty()) return {}; vector<int> res; int 阅读全文
posted @ 2017-02-12 00:02 王坤1993 阅读(197) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: int divide(int dividend, int divisor) { long long res = 0; long long m = abs((long long)dividend), n = abs((long long)divisor 阅读全文
posted @ 2017-02-12 00:01 王坤1993 阅读(146) 评论(0) 推荐(0) 编辑
摘要: class Solution { public: int strStr(string haystack, string needle) { if (needle.empty()) return 0; int m = haystack.size(), n = needle.size(); if (m 阅读全文
posted @ 2017-02-12 00:00 王坤1993 阅读(200) 评论(0) 推荐(0) 编辑