码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
Template design pattern application in android
The template method allow separate the generic method from a detail context(class) via inheritance Another advantage: 1.Inheritance implementation means that you will know the actual method implement...
分类:移动开发   时间:2015-07-22 16:05:50    阅读次数:140
#leetcode#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 the value (will always be positive) of the key if ...
分类:系统相关   时间:2015-07-22 10:53:19    阅读次数:224
[CareerCup] 2.6 Linked List Cycle 单链表中的环
2.6 Given a circular linked list, implement an algorithm which returns the node at the beginning of the loop.DEFINITIONCircular linked list: A (corrup...
分类:其他好文   时间:2015-07-21 22:00:57    阅读次数:118
LeetCode Implement Queue using Stacks
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 of queue.peek() -- Get the front element.empty() --...
分类:其他好文   时间:2015-07-21 17:22:00    阅读次数:109
leetcode之链表-单链表反转-C++
ReverseLinked List A linked list can be reversed eitheriteratively or recursively. Could you implement both?  迭代版本: 1. /** 2. * Definition for singly-linked list. 3. * struct ListNode { 4. ...
分类:编程语言   时间:2015-07-21 12:54:18    阅读次数:112
LeeCode-Pow(x, n)
Implement pow(x,n).1 double myPow(double x, int n) 2 {3 if(n==0) 4 return 1.0; 5 if(n<0) 6 return 1.0/pow(x,-n); 7 ret...
分类:其他好文   时间:2015-07-20 10:43:22    阅读次数:121
strstr
const char* strstr(const char *str, const char* substr){ int i, j, temp; for (i = 0; str[i] != '\0'; i++) { j = 0; temp = i; //...
分类:其他好文   时间:2015-07-19 21:23:44    阅读次数:103
[CareerCup] 2.2 Kth to Last Element of Linked List 链表的倒数第k个元素
2.2 Implement an algorithm to find the kth to last element of a singly linked list.这道题让我们求链表中倒数第k个元素,LeetCode中相类似的题目有Kth Largest Element in an Array 数...
分类:其他好文   时间:2015-07-19 13:21:05    阅读次数:104
[CareerCup] 2.3 Delete Node in a Linked List 删除链表的节点
2.3 Implement an algorithm to delete a node in the middle of a singly linked list, given only access to that node.EXAMPLEInput: the node c from the li...
分类:其他好文   时间:2015-07-19 13:20:37    阅读次数:86
Oracle快速导出数据文件
数据文件生成方式有多种,但是大多效率低下,对于大型数据仓库来说,高效导出文件是迫切需求: 这里通过shell+java的方式集成老熊写的数据文件生成工具,效率比普通的导出方法高70%: shell文件生成脚本: {CSDN:CODE:762627} Java调用脚本:这里implement Callable接口,实现了多线程的调用方式: /** * @Title:...
分类:数据库   时间:2015-07-19 11:57:14    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!