码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
XDOJ_1140_KMP
http://acm.xidian.edu.cn/problem.php?id=1140 KMP效率真心低,cstring中的strstr快多了。 ...
分类:其他好文   时间:2016-11-01 01:32:47    阅读次数:173
【leetcode?python】 225. Implement Stack using Queues
#栈是先进后出 #队列先进先出 class Stack(object): def __init__(self): """ initialize your data structure here. """ self.inQueue=[] self.outQueue=[] def push(self, ...
分类:编程语言   时间:2016-10-31 20:38:44    阅读次数:234
[LeetCode] All O`one Data Structure 全O(1)的数据结构
Implement a data structure supporting the following operations: Challenge: Perform all these in O(1) time complexity. ...
分类:其他好文   时间:2016-10-30 00:37:08    阅读次数:178
My first python script for work
I write it yesterday to watch the NE process(rcpfd,cfgd) automatically, then i will write a window to implement it: #! /usr/bin/env python # -*- codin ...
分类:编程语言   时间:2016-10-29 11:56:38    阅读次数:184
[Angular2 Form] Angular 2 Template Driven Form Custom Validator
In this tutorial we are going to learn how we can also implement custom form field validation in Angular 2 template driven forms, by creating our own ...
分类:其他好文   时间:2016-10-28 20:19:52    阅读次数:137
LeetCode 50. Pow(x, n)
Implement pow(x, n). 【题目分析】 实现幂指数函数。 【思路】 1. 防止overflow的发生 2. 减少时间复杂度 最简单的思路就是遍历啦,但是当n < 0时,有人会把n先变为-n,这样当n = Integer.MIN_VALUE是会产生溢出。 直接遍历相乘的时间复杂度很高, ...
分类:其他好文   时间:2016-10-27 12:44:29    阅读次数:156
【LeetCode】8. 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 be ...
分类:其他好文   时间:2016-10-26 19:23:55    阅读次数:142
146. 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 ...
分类:系统相关   时间:2016-10-26 07:25:37    阅读次数:265
一.Introduction
1.8.1 Built-in Atomic Data Types Python has two main built-in numeric classes(内置函数,int 和 float) that implement the integer and floating point data typ ...
分类:其他好文   时间:2016-10-22 20:16:26    阅读次数:294
vmware以及schlumberger题解
先是vmare的:具体的题目我就不描述了。 1. 贪吃的小明。直接数个数,统计个数,就可以完成。使用map,应该输入implement这一类,我认为很简单,但是我只过了33%。 1 /* 2 ID: y1197771 3 PROG: test 4 LANG: C++ 5 */ 6 #include< ...
分类:系统相关   时间:2016-10-22 17:42:41    阅读次数:347
2381条   上一页 1 ... 83 84 85 86 87 ... 239 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!