码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
[eetcode 10]Regular Expression Matching
1 题目:Implement regular expression matching with support for'.'and'*'.'.' Matches any single character.'*' Matches zero or more of the preceding elemen...
分类:其他好文   时间:2015-06-10 13:56:27    阅读次数:97
Leetcode[206]-Reverse Linked List
Reverse a singly linked list.Reverse a singly linked list.Hint: A linked list can be reversed either iteratively or recursively. Could you implement both?分析: /** * Definition for singly-linked list....
分类:其他好文   时间:2015-06-10 10:26:28    阅读次数:114
Leetcode[136]-Single Number
Given an array of integers, every element appears twice except for one. Find that single one.Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra me...
分类:其他好文   时间:2015-06-10 08:59:53    阅读次数:114
Java for 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.解题思路:参考百度百科:Tri...
分类:编程语言   时间:2015-06-09 19:31:02    阅读次数:135
LeetCode:Next Permutation
problem:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not...
分类:其他好文   时间:2015-06-09 13:20:13    阅读次数:108
【九章算法免费公开课】从 strStr 谈面试技巧与 Coding Style
刷题到底刷到什么程度才够? 题目不会直接说不会么? 为什么题目都做出来还是老是挂? 觉得面试官总在为难你? 从来就搞不懂动态规划是什么? 如何正确的骑驴找马? 什么是正确的Coding Style? 面试中该与面试官如何沟通?...
分类:编程语言   时间:2015-06-08 13:25:29    阅读次数:611
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 value (will always be positive) of the key if ...
分类:系统相关   时间:2015-06-07 11:10:42    阅读次数:144
LeetCode【8】. String to Integer (atoi) --java实现
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 below and ask you...
分类:编程语言   时间:2015-06-07 06:15:52    阅读次数:181
leetcode ----Trie专题
一: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. 分析:此题是典型的trie树,...
分类:其他好文   时间:2015-06-05 22:42:59    阅读次数:182
Android-Service中执行新线程的几种方式
大家都知道,service和activity都是运行在UI线程中,超时的数据读取和网络耗时等操作必须新建线程,下面说说service中执行新线程的几种方式。1.传统的java方式我们都知道 java中新建线程可以继承Thread类,也可以implement Runnable接口。实质都是实现Runn...
分类:移动开发   时间:2015-06-05 19:19:40    阅读次数:163
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!