码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below ...
分类:其他好文   时间:2016-05-08 15:16:37    阅读次数:230
UML类图
UML类图的6大关系 《小酌重构系列》已经完成了大约1/3了,在这些文章中,我使用了一些简单的类图来描述重构策略。在之后的文章中,我可能会借助稍微复杂一些的UML类图来介绍。但是在此之前,我觉得有必要先介绍一下UML类图中6大关系了。这6大关系分别是Inheritance(继承)、Implement ...
分类:其他好文   时间:2016-05-08 15:05:41    阅读次数:183
字符串的一个小测试
字符串即若干字符组成的序列,每个字符串都以‘\0’结尾,由于这个特点,每个字符串都有一个额外的字符开销,所以要注意字符串越界的问题。如:charstr[10]; strcpy(str,"0123456789");//越界同时,很多函数如strcpy、strlen、strcmp、strstr等字符串函数都是用了这个特点实现..
分类:其他好文   时间:2016-05-08 01:22:14    阅读次数:169
LeetCode:Implement Queue using Stacks
Implement Queue using Stacks Total Accepted: 42449 Total Submissions: 124932 Difficulty: Easy Implement the following operations of a queue using stacks. push(x) -- Push element x...
分类:其他好文   时间:2016-05-07 11:25:35    阅读次数:157
LeetCode:Implement Stack using Queues
Implement Stack using Queues Total Accepted: 38469 Total Submissions: 125942 Difficulty: Easy Implement the following operations of a stack using queues. push(x) -- Push element x...
分类:其他好文   时间:2016-05-07 11:25:07    阅读次数:176
1088. Rational Arithmetic (20)
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient. Input Specification: Each input file contains one te...
分类:其他好文   时间:2016-05-06 12:34:58    阅读次数:130
Linux基础练习_多线程
【问题描述】 Fast-food restaurant problem: Design, implement and test a solution for the IPC problem specified below. Suppose we have the following scenario: ? 50 customers successively come to a fast-...
分类:编程语言   时间:2016-05-05 22:43:56    阅读次数:333
*LRU Cache
题目: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get ...
分类:系统相关   时间:2016-05-04 06:36:27    阅读次数:186
C语言小结
1.输入输出: char s; printf("Enter a string"); scanf("%s",&s); printf(''Hello,%s",s); 2.字符串 puts(); gets(); getchar(); fputs(); fgets(); strstr(s1,s2); str... ...
分类:编程语言   时间:2016-05-03 15:56:03    阅读次数:191
LeetCode-Implement strStr()
有一种KMP算法,不过实现起来比较复杂,这里直接用暴力解法 ...
分类:其他好文   时间:2016-05-03 07:03:00    阅读次数:124
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!