码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
Pow(x, n)
Implement pow(x, n). class Solution { public: double myPow(double x, int n) { // Start typing your C/C++ solution below // DO NOT write int main() fun
分类:其他好文   时间:2016-02-07 21:18:42    阅读次数:276
C 函数 strstr 的高效实现
C函数库中有一个函数 strstr(char*, char*),它实现的是在一个原字符串中查找一个子串。假设找到这种一个子串,返回这个子串在原字符串中的起始位置,若没有找到这种一个子串。则返回NULL。 可是,函数库中实现的仅是普通情况下的查找。即没有做太多优化,在运行一些特殊的字符串时效率非常低,
分类:其他好文   时间:2016-02-07 13:39:02    阅读次数:177
Java中各种(类、方法、属性)访问修饰符与修饰符的说明
类: 访问修饰符 修饰符 class 类名称 extends 父类名称 implement 接口名称 (访问修饰符与修饰符的位置可以互换) 访问修饰符 名称 说明 备注 public 可以被本项目的所有类访问(使用),其他项目若想使用本项目中的类,必须将本项目打包为jar包,然后加入到classpa
分类:编程语言   时间:2016-02-04 18:51:37    阅读次数:309
FPGA, Float 32bit, multiplyier by Verilog
1, FPGA device, using three 18bit x 18 bit multiplier to implement 32bit float multiplier 2, comparing to Altera float multiplyer IP (1) just half of
分类:其他好文   时间:2016-02-04 09:44:26    阅读次数:224
Lintcode: Interval Sum II
Given an integer array in the construct method, implement two methods query(start, end) and modify(index, value): For query(start, end), return the su
分类:其他好文   时间:2016-02-02 06:28:06    阅读次数:248
Lintcode: Segment Tree Modify
For a Maximum Segment Tree, which each node has an extra value max to store the maximum value in this node's interval. Implement a modify function wit
分类:其他好文   时间:2016-02-01 09:52:21    阅读次数:176
LRU Cache -- LeetCode
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
分类:系统相关   时间:2016-01-28 13:46:53    阅读次数:217
Implement the integral part logn base 2 with bit manipulations
Implement the integral part logn base 2 with bit manipulationsint integralPartOfLog(unsigned int n){ int ret = 0; while (n > 0) { n =...
分类:其他好文   时间:2016-01-27 12:54:50    阅读次数:131
Implement Find and replace (find given pattern and replace it with a given string)
public static String FindAndReplace(String GivenString, String Pattern, String ReplaceString) { int j = 0; int tempi; ...
分类:其他好文   时间:2016-01-25 06:34:47    阅读次数:125
Lua编程form
local form = {}-- form to produce the target with super functional table and integrating multi-interface implement featurefunction form.build(tag, sup...
分类:其他好文   时间:2016-01-24 23:54:21    阅读次数:675
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!