码迷,mamicode.com
首页 >  
搜索关键字:definition    ( 2735个结果
leetcode - Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. /** * Definition for b...
分类:其他好文   时间:2014-10-08 10:45:45    阅读次数:106
Leetcode Path Sum
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ /** * http...
分类:其他好文   时间:2014-10-08 01:05:04    阅读次数:253
AIDL学习
AIDL学习前知识 AIDL:Android Interface Definition Language,即Android接口定义语言 AIDL使用情景:Android中不同的进程之间不能直接通信,相互调用接口,实现数据的共享。此时,便能用AIDL来实现这中需求。 Android使用Binde...
分类:其他好文   时间:2014-10-07 18:52:03    阅读次数:202
UVA 10453 Make Palindrome
Problem A Make Palindrome Input: standard input Output: standard output Time Limit: 8 seconds   By definition palindrome is a string which is not changed when reversed. "MADAM" is a nice example...
分类:其他好文   时间:2014-10-07 12:44:13    阅读次数:176
Max Points on a Line
计算所有的slope 放到一个arraylist中. 特殊情况是the same as point . 遍历所有./** * Definition for a point. * struct Point { * int x; * int y; * Point() : x(0)...
分类:其他好文   时间:2014-10-07 05:19:42    阅读次数:284
leetcode - Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. /** * Definition for binary tree ...
分类:其他好文   时间:2014-10-06 16:08:40    阅读次数:181
leetcode - Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNode { ...
分类:其他好文   时间:2014-10-06 14:46:30    阅读次数:202
leetcode - Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tree. /** * Definition for binary tree * struct TreeNode {...
分类:其他好文   时间:2014-10-06 14:45:50    阅读次数:178
leetCode Symmetric Tree
非递归解法 /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */ class...
分类:其他好文   时间:2014-10-06 12:54:00    阅读次数:211
POJ 2553 taarjan缩点+度数
The Bottom of a GraphTime Limit:3000MSMemory Limit:65536KTotal Submissions:8904Accepted:3689DescriptionWe will use the following (standard) definition...
分类:其他好文   时间:2014-10-05 20:53:19    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!