码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
LeetCode——Basic Calculator II
Description:Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / ...
分类:其他好文   时间:2015-07-02 00:51:47    阅读次数:171
MQTT的学习研究(一)MQTT学习网站
MQTT的官方推荐网站:http://mqtt.org/software使用IBM 的MQTT协议实现push消息地址:http://tokudu.com/2010/how-to-implement-push-notifications-for-android/google code 下载MQTT ...
分类:Web程序   时间:2015-07-01 18:05:48    阅读次数:167
50 Pow(x, n)
50 Pow(x, n)链接:https://leetcode.com/problems/powx-n/ 问题描述: Implement pow(x, n).Hide Tags Math Binary Search实现pow函数。这个问题可以用递归解决,联想到到 Binary Search,我的解决方案是每次让指数缩小两倍,当指数为技术的时候需要特别处理。还有指数为负的情况需要注意。class...
分类:其他好文   时间:2015-07-01 10:12:27    阅读次数:104
vc++上的MFC的对象序列化和反序列化
注意点:1. 必须类型序列化声明 DECLARE_SERIAL( Person )2. 必须写出实现宏IMPLEMENT_SERIAL(Person, CObject, VERSIONABLE_SCHEMA | 2)3. 重写CObject中的Serialize函数void Person::Seri...
分类:编程语言   时间:2015-06-30 20:16:26    阅读次数:176
(Data structure)Implement Trie And Add and Search Word
Implement Trie (Prefix Tree)Implement a trie withinsert,search, andstartsWithmethods.Note:You may assume that all inputs are consist of lowercase lett...
分类:其他好文   时间:2015-06-29 23:36:03    阅读次数:156
[LeetCode-JAVA] Basic Calculator II
题目:Implement a basic calculator to evaluate a simple expression string.The expression string contains onlynon-negativeintegers,+,-,*,/operators and em...
分类:编程语言   时间:2015-06-29 21:59:02    阅读次数:148
LeetCode——Sqrt(x)
Description:Implement int sqrt(int x).Compute and return the square root of x.好好学习数学还是非常有用的,牛顿迭代法 求解。 计算x2= n的解,令f(x)=x2-n,相当于求解f(x)=0的解,如左图所示。 首先取x0,...
分类:其他好文   时间:2015-06-29 06:17:21    阅读次数:102
LeetCode——Binary Search Tree Iterator
Description:Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will r...
分类:其他好文   时间:2015-06-29 00:24:08    阅读次数:191
Implement Trie (Prefix Tree)
https://leetcode.com/problems/implement-trie-prefix-tree/Implement a trie withinsert,search, andstartsWithmethods.Note:You may assume that all inputs ...
分类:其他好文   时间:2015-06-28 20:02:22    阅读次数:120
编程实现字符串查找strstr,find
字符串查找两种情况,查找返回子字符串的指针位置和在字符串中的位置。 1. const char* strstr(const char* src, const char* sub) { if (src == NULL && sub == NULL) { return src; } const char* ps = src; const char* pb = sub; while ...
分类:其他好文   时间:2015-06-28 12:49:28    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!