c++
Alvin J. Wu
吴健
展开
-
leetcode 108
Unique Email Addresses 用set点忽略,+后面忽略,@之后保存 class Solution { public: int numUniqueEmails(vector<string>& emails) { set<string> res; for(int i=0;i&a原创 2018-10-30 22:31:39 · 152 阅读 · 0 评论 -
[contest 111]943. Find the Shortest Superstring
Given an array A of strings, find any smallest string that contains each string in A as a substring. We may assume that no string in A is substring of another string in A. Example 1: Input: [“alex”,“l...原创 2018-11-20 00:02:00 · 181 阅读 · 0 评论