码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
LeetCode 208: Implement Trie (Prefix Tree)
Implement a trie with insert, search, and startsWith methods. Note: You may assume that all inputs are consist of lowercase letters a-z. 前缀查找树,简单的可以实现为一种26叉树。需要在节点上增加一个字段,标明该节点是否是一个单词,还是仅仅是单词的前缀。代码...
分类:其他好文   时间:2015-06-27 16:26:34    阅读次数:142
CSS3使用盒模型实现三栏布局
本篇文章由:http://xinpure.com/css3-box-model-to-implement-a-three-column-layout/使用 Position 绝对定位也是可以实现三栏布局的,然而使用 CSS3 的盒模型却显得更简单、更灵活CSS3盒模型display: -webkit...
分类:Web程序   时间:2015-06-26 17:47:41    阅读次数:190
[LeetCode] Basic Calculator II 基本计算器之二
Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / operators an...
分类:其他好文   时间:2015-06-26 00:23:20    阅读次数:135
[LeetCode][JavaScript]Pow(x, n)
Pow(x, n)Implement pow(x,n).https://leetcode.com/problems/powx-n/注意x和n都可能是负数。递归求解,比如求3的4次方,可以拆成3的2次方相乘;3的5次就是3^2相乘再乘2。 1 /** 2 * @param {number} x 3 ....
分类:编程语言   时间:2015-06-26 00:10:03    阅读次数:171
【LeetCode】LRU Cache 解决报告
插话:只写了几个连续的博客,博客排名不再是实际“远在千里之外”该。我们已经进入2一万内。再接再厉。油!Design and implement a data structure for Least Recently Used (LRU) cache. It should support the fo...
分类:系统相关   时间:2015-06-25 16:59:59    阅读次数:131
[LeetCode] Wildcard Matching
Wildcard Matching Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The ...
分类:其他好文   时间:2015-06-25 15:35:29    阅读次数:123
Implement Stack using Queues ——LeetCode
Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top()...
分类:其他好文   时间:2015-06-25 13:53:08    阅读次数:91
[LeetCode] LRU Cache
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:系统相关   时间:2015-06-25 13:37:40    阅读次数:152
Implement Stack using Queues
Description:Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the...
分类:其他好文   时间:2015-06-24 23:48:32    阅读次数:120
Regular Expression Matching2015年6月24日
题目:Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding eleme...
分类:其他好文   时间:2015-06-24 22:29:30    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!