level order traversal加一个previousNode ...
分类:
其他好文 时间:
2016-06-14 07:45:00
阅读次数:
204
Previous works do not relate to function pointers, but reading some documents reading and learning STL functions lets me know the pointer of functions ...
分类:
其他好文 时间:
2016-06-12 13:46:20
阅读次数:
133
We set two pointers number1 and number2 to record the most probably element of which the amount is over 1/3. Meanwhile, we have count1 to record the t ...
分类:
其他好文 时间:
2016-06-09 06:25:12
阅读次数:
210
Populating Next Right Pointers in Each Node II Follow up for problem "Populating Next Right Pointers in Each Node". What if the given tree could be an ...
分类:
其他好文 时间:
2016-06-02 11:15:30
阅读次数:
158
Middle of Linked List propose: get the middle element of a linked list method: 1. use two pointers conplexity: o(n) example: Given 1->2->3, return the ...
分类:
其他好文 时间:
2016-05-26 10:05:15
阅读次数:
165
Given a binary tree Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL ...
分类:
其他好文 时间:
2016-05-24 20:47:03
阅读次数:
124
在是用freeswitch时利用ESL的python调用时传递字符串报错 修改文件esl_wrap.cpp ##### /* for C or C++ function pointers *///添加定义#define SWIG_InternalNewPointerObj(ptr, type, fl ...
分类:
编程语言 时间:
2016-05-23 06:42:49
阅读次数:
455
【转】作者:xwdreamer 出处:http://www.cnblogs.com/xwdreamer 对于指针和常量,有以下三种形式都是正确的: 下面依次对这三种类型进行介绍。 因为*操作符是左操作符,左操作符的优先级是从右到左,对于 1.常量指针(Constant Pointers) 先看con ...
分类:
其他好文 时间:
2016-05-13 07:40:22
阅读次数:
136
1: 在c++中,我们能够通过对象名字访问一个对象。但与此同时,存储在内存中的对象在内存中有一个具体地址,因此我们也能够通过该具体地址访问该对象,指针存储着内存地址。2:在c++旧标准中,我们使用0或者是NULL来表示零指针,零指针表示该指针不指向任何对象。当我们使用0来表示零指针时,它很容易与整形的0混淆;NULL是个宏,一般来说在c++中NULL被如下定义:#define NULL 0,然后在...
分类:
其他好文 时间:
2016-05-12 22:32:09
阅读次数:
110