码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
[leetcode] Sqrt(x)
Implement int sqrt(int x).
分类:其他好文   时间:2014-07-07 23:48:49    阅读次数:254
Problem LRU Cache
Problem Description:Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.ge...
分类:其他好文   时间:2014-07-07 16:41:12    阅读次数:237
Leetcode Pow(x,n)
Implement pow(x,n).明显的二分解决由于n不可能总是偶数, 如果n是正奇数,那么n个x的乘积等于两部分的乘积再乘以x 如果n是负奇数,那么n个x的乘积等于两部分乘积再乘以1/xclass Solution {public: double pow(double x, int ...
分类:其他好文   时间:2014-07-07 15:00:12    阅读次数:183
Snapshot Types
Volume managers Some Unix systems have snapshot-capable logical volume managers. These implement copy-on-write on entire block devices by copying chan...
分类:其他好文   时间:2014-06-30 14:53:23    阅读次数:271
leetCode: Single Number II [137]
【题目】 Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? 【题意】 给定一个整数以外,其中除了一个整数只出现一次以外...
分类:其他好文   时间:2014-06-29 22:52:35    阅读次数:246
LeetCode: LRU Cache [146]
【题目】 Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set. get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. se...
分类:其他好文   时间:2014-06-29 22:45:26    阅读次数:358
ZOJ 2971 Give Me the Number;ZOJ 2311 Inglish-Number Translator (字符处理,防空行,strstr)
ZOJ 2971 Give Me the Number题目ZOJ 2311Inglish-Number Translator 题目//两者题目差不多,细节有点点不一样,因为不是一起做的,所以处理方式有一点点不一样——还是前一个方式高端呀。//ZOJ 2971 的AC代码(用了strstr函数):#i...
分类:其他好文   时间:2014-06-27 17:11:36    阅读次数:282
[leetcode] Implement strStr()
Implement strStr().
分类:其他好文   时间:2014-06-27 12:37:14    阅读次数:198
[leetcode] [leetcode] String to Integer (atoi)
Implement atoi to convert a string to an integer.
分类:其他好文   时间:2014-06-27 12:08:39    阅读次数:143
[leetcode] Pow(x, n)
Implement pow(x, n).
分类:其他好文   时间:2014-06-27 12:01:51    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!