原题链接在这里:https://leetcode.com/problems/design-compressed-string-iterator/description/ 题目: Design and implement a data structure for a compressed string ...
分类:
其他好文 时间:
2017-09-20 10:30:25
阅读次数:
162
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front ...
分类:
其他好文 时间:
2017-09-19 04:06:15
阅读次数:
128
LeetCode 208. Implement Trie (Prefix Tree) ...
分类:
其他好文 时间:
2017-09-17 11:48:20
阅读次数:
177
一、strncat及自行封装实现 二、atoi 三、strrev(字符串逆转) 四、strupr和strlwr(大小写转换) 五、strlen 六、strcat(字符串拼接) 七、strchr(查找某字符是否在字符串中) 八、strcmp(比较两字符串是否相等) 八、strstr(在字符串中查找是否 ...
分类:
编程语言 时间:
2017-09-16 16:04:06
阅读次数:
291
1 /** 2 * // This is the interface that allows for creating nested lists. 3 * // You should not implement it, or speculate about its implementation 4 ... ...
分类:
其他好文 时间:
2017-09-13 01:47:27
阅读次数:
253
一、for /l %i in (1,1,5) do calc 等命令行参数 二、变色龙 三、gets和puts(对比scanf和printf) puts()函数自动换行。 四、strstr(在串中查找指定字符串的第一次出现) 五、strcmp以及自己实现这个函数功能(mystrcmp) 六、strn ...
分类:
编程语言 时间:
2017-09-10 19:50:23
阅读次数:
198
Implement a magic directory with buildDict, and search methods. For the method buildDict, you'll be given a list of non-repetitive words to build a di ...
分类:
其他好文 时间:
2017-09-10 12:38:11
阅读次数:
226
来源:https://leetcode.com/problems/implement-queue-using-stacks Implement the following operations of a queue using stacks. push(x) -- Push element x to ...
分类:
其他好文 时间:
2017-09-09 17:15:45
阅读次数:
180
atoi问题leetcodejavaatoi 1.问题描述Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challen... ...
分类:
其他好文 时间:
2017-09-04 15:05:06
阅读次数:
133
#include <stdio.h> #include <string.h> #include <ctype.h> /*strstr_while字串模型*/ int Search_count(char *p, char *str) { int ncount = 0; if (NULL == p || ...
分类:
其他好文 时间:
2017-09-04 13:21:39
阅读次数:
175