码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
8# String to Integer (atoi)
题目链接:https://leetcode.com/problems/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, ple...
分类:其他好文   时间:2015-06-21 14:30:06    阅读次数:142
leetcode_31_Next Permutation
Next Permutation 欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is n...
分类:其他好文   时间:2015-06-21 13:13:09    阅读次数:130
[LeetCode-JAVA] Implement Stack using Queues
题目: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.to...
分类:编程语言   时间:2015-06-20 13:08:12    阅读次数:119
leetcode 225 Implement Stack using Queues
1. 问题描述  用队列来模拟栈的操作。实现如下栈操作:    push(x) 将元素x入栈。 pop() 出栈。 top() 获取栈顶元素。 empty() 判断是否为空。   注意:只能用队列的标准操作,队头取元素,队尾插入元素,获取队列的大小,以及队列是否为空。2 方法和思路  可以用两个队列q1和q2来实现栈的操作,设q2为辅助队列。    入栈时将元素都存入q1队列中。 出栈时将q1中...
分类:其他好文   时间:2015-06-20 12:00:50    阅读次数:123
[LeetCode-JAVA] Basic Calculator
题目:Implement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses), the plus+or mi...
分类:编程语言   时间:2015-06-20 11:46:17    阅读次数:185
Leetcode37: Implement strStr()
Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Update (2014-11-02): The signature of the function had been updat...
分类:其他好文   时间:2015-06-19 11:51:37    阅读次数:86
GetAdaptersInof获取本地连接的网卡信息,排除无线网卡和虚拟网卡
/*只获取本地连接的网卡信息,并不获取无线网卡和虚拟网卡的信息,要想获取无线网卡的信息,需把if(strstr(pAdapter->Description,"PCI")>0 && pAdapter- >Type==MIB_IF_TYPE_ETHERNET)改成if(strstr(pAdapter->Type==71),若要获取虚拟网卡的信息,需把if(strstr(pAdapter->Descrip...
分类:其他好文   时间:2015-06-19 10:26:45    阅读次数:134
[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...
分类:系统相关   时间:2015-06-19 07:50:56    阅读次数:247
leetcode 225: Implement Stack using Queues
leetcode 225: Implement Stack using Queues python java c++...
分类:其他好文   时间:2015-06-19 01:32:31    阅读次数:123
[LeetCode] Single Number
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 ...
分类:其他好文   时间:2015-06-18 17:26:45    阅读次数:93
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!