码迷,mamicode.com
首页 >  
搜索关键字:two pointer    ( 13796个结果
VC++ CopyFile函数使用方法
BOOL CopyFile( LPCTSTR lpExistingFileName, // pointer to name of an existing file LPCTSTR lpNewFileName, // pointer to filename to copy to BOOL bFailI...
分类:编程语言   时间:2014-07-05 17:16:57    阅读次数:275
Divide Two Integers
Divide Two Integers
分类:其他好文   时间:2014-07-05 17:05:55    阅读次数:229
[leetcode] Populating Next Right Pointers in Each Node
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.
分类:其他好文   时间:2014-07-03 23:46:37    阅读次数:389
[leetcode] Same Tree
Given two binary trees, write a function to check if they are equal or not.
分类:其他好文   时间:2014-07-03 19:26:46    阅读次数:213
UVA10107 What is the Median?
What is the Median?  The Problem Median plays an important role in the world of statistics. By definition, it is a value which divides an array into two equal parts. In this problem you are ...
分类:其他好文   时间:2014-07-03 17:43:53    阅读次数:250
[LeetCode]Merge Two Sorted Lists
[LeetCode]Merge Two Sorted Lists...
分类:其他好文   时间:2014-07-03 16:37:12    阅读次数:181
垃圾回收(garbage collection)介绍
?? 垃圾回收用来实现内存的自动管理(automatic management),区别于人工管理(manual management)。人工管理内存容易出现的问题: 1)悬垂指针,dangling pointer 2)重复回收,Double free 3)内存泄露,memory leak 历史 垃圾回收的概念及技术由John McCarthy于1959年发明,应用于List...
分类:其他好文   时间:2014-07-03 16:34:03    阅读次数:194
c/c++:回调函数
1:函数名为指针 首先,在C语言中函数是一种function-to-pointer的方式,即对于一个函数,会将其自动转换成指针的类型.如: 1 #include 2 3 void fun() 4 { 5 } 6 7 int main() 8 { 9 printf("%p %p %p\n", &fun, fun, *fun); 10 return 0...
分类:编程语言   时间:2014-07-03 13:30:17    阅读次数:363
LeetCode:Same Tree
Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally i...
分类:其他好文   时间:2014-07-02 17:56:50    阅读次数:205
[leetcode] Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.
分类:其他好文   时间:2014-07-02 14:47:43    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!