On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc ...
分类:
其他好文 时间:
2020-01-25 11:41:55
阅读次数:
76
一、题目 Longest Substring Without Repeating Characters,具体请自行搜索。 这个题目,我看了一下,经过一番思考,我觉得实现起来不是很复杂。 但要做到bug free有点难度,主要是边界的问题。 二、这个题目,我自己实现,没有参考代码 提交了5次: 第1次 ...
分类:
其他好文 时间:
2020-01-24 09:14:31
阅读次数:
75
根据字符出现频率排序。题意是给一个字符串,请按照出现字符的频率高低重新排列这个字符并输出。例子, Example 1: Input: "tree" Output: "eert" Explanation: 'e' appears twice while 'r' and 't' both appear ...
分类:
其他好文 时间:
2020-01-23 13:58:02
阅读次数:
71
Given any string of N (≥) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as: h d e l l r ...
分类:
其他好文 时间:
2020-01-22 14:29:27
阅读次数:
98
Find minimal ops to convert one str to another Description Given two alphabet strings str1 and str2. You can change the characters in str1 to any alph ...
分类:
其他好文 时间:
2020-01-22 12:49:47
阅读次数:
112
1.定义并且输出 wchar_t* pwchello = L"a我"; // 2 Hiragana characters wprintf(L"Convert to multibyte string:%s\n",pwchello); 2.windosapi 转换 https://docs.micros ...
分类:
其他好文 时间:
2020-01-21 23:37:33
阅读次数:
91
题目链接: Valid Parentheses 题目大意: 判断字符串s的字符是否满足符号匹配 做题报告: (1)该题涉及的算法与数据结构 栈,哈希表 (2)自己的解答思路+代码+分析时间和空间复杂度 思路: 栈先入后出特点,若遇到左括号入栈,遇到右括号时将对应栈顶左括号出栈,则遍历完所有括号后 s ...
分类:
其他好文 时间:
2020-01-21 00:23:49
阅读次数:
87
The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed ...
分类:
其他好文 时间:
2020-01-20 09:57:49
阅读次数:
93
Given an array A of strings made only from lowercase letters, return a list of all characters that show up in all strings within the list (including d ...
分类:
其他好文 时间:
2020-01-18 13:04:21
阅读次数:
99
在使用selenium处理中文网页或者网页标题是中文的时候,出现UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128), from selenium im ...
分类:
Web程序 时间:
2020-01-18 12:39:09
阅读次数:
126