码迷,mamicode.com
首页 >  
搜索关键字:definition    ( 2735个结果
Binary Tree Inorder Traversal
二叉树的中序遍历,没啥好说的/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) :...
分类:其他好文   时间:2015-03-14 16:41:54    阅读次数:126
Binary Tree Level Order Traversal
我竟然先做的前一题,无语了/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : ...
分类:其他好文   时间:2015-03-14 15:14:44    阅读次数:78
Insertion Sort List
Insertion Sort List问题:Sort a linked list using insertion sort.思路: 三行情书 旧旧 新 旧 旧 新我的代码:/** * Definition for singly-linked list. * public class ListNod....
分类:其他好文   时间:2015-03-14 13:43:02    阅读次数:114
Remove Duplicates from Sorted List
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; *...
分类:其他好文   时间:2015-03-14 13:39:08    阅读次数:110
Merge Two Sorted Lists
两个指针的做法,但比起2个数组有序的数组的话,链表做更容易,因为当一个链表遍历结束后,tail指针并不需要遍历另一个链表,只要直接指向它就行/** * Definition for singly-linked list. * struct ListNode { * int val; * ...
分类:其他好文   时间:2015-03-13 22:04:13    阅读次数:147
java8函数表达式的定义[Definition of a Lambda Expression]
英文来源于:Java in a Nutshell, 6th Edition >            Definition of a Lambda Expression A lambda expression is essentially a function that does not have a name, and can be treated as ...
分类:编程语言   时间:2015-03-13 02:09:28    阅读次数:138
[LeetCode] 147 Insertion Sort List
Sort a linked list using insertion sort. 解题思路: 新建一个头结点 将链表有序的插入这个新链表 代码: /** * Definition for singly-linked list. * struct ListNode { * int val; * Lis...
分类:其他好文   时间:2015-03-12 14:46:30    阅读次数:155
Android AIDL使用详解
1.什么是aidl:aidl是 Android Interface definition language的缩写,一看就明白,它是一种android内部进程通信接口的描述语言,通过它我们可以定义进程间的通信接口 icp:interprocess communication :内部进程通...
分类:移动开发   时间:2015-03-11 13:07:58    阅读次数:209
Reverse a Singly LinkedList
Reverse a Singly LinkedList * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) {...
分类:其他好文   时间:2015-03-11 07:04:04    阅读次数:142
Maximum Depth of Binary Tree
求二叉树的最大深度/** * Definition for binary tree * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ int m...
分类:其他好文   时间:2015-03-10 23:06:11    阅读次数:160
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!