![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程之美
BeLeaderOfMyLife
专一iOS平台终端开发以自己有限的生命奉献给无穷的编程时光热爱生活更热爱编程
展开
-
[编程之美]2 电话号码对应英语单词
时间复杂度O(n^3),n是s的长度; 空间复杂度O(n^3)vector<string> solution(string s) { char r[8][4] = { { 'A', 'B', 'C', ' ' }, { 'D', 'E', 'F', ' ' }, { 'G', 'H', 'I', ' ' }, { 'J', 'K', 'L', ' ' }, { 'M', '原创 2015-04-05 21:27:55 · 688 阅读 · 0 评论 -
[编程之美]1 字符串移位包含问题
bool solution(string s1, string s2) { int j = 0; while (j < s1.length()) { while (j < s1.length() && s1[j] != s2[0]) { j++;原创 2015-04-05 18:37:47 · 520 阅读 · 0 评论