码迷,mamicode.com
首页 >  
搜索关键字:add binary    ( 48151个结果
第12周——教师干部类
#include using namespace std; class Teacher { public: Teacher(string nam,int ag,string add,string tel,string se,string ti): name(nam),age(ag),addr(add),telnum(tel),sex(se),title...
分类:其他好文   时间:2014-05-15 14:41:33    阅读次数:222
leetcode -day14 Populating Next Right Pointers in Each Node I II
1、 ?? Populating Next Right Pointers in Each Node Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate...
分类:其他好文   时间:2014-05-15 04:57:36    阅读次数:221
LeetCode-001 Two Sum
LeetCode-001 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:其他好文   时间:2014-05-15 04:34:50    阅读次数:293
LeetCode--Same Tree
Same Tree  Total Accepted: 16072 Total Submissions: 38790My Submissions Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal i...
分类:其他好文   时间:2014-05-15 04:00:39    阅读次数:319
如何使用git 生成patch
1,下载代码 git clone git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-next-2.6.git cd bluetooth-next-2.6 2,修改代码 vi drivers/bluetooth/btusb.c 3,把代码添加到git管理仓库 git add drivers/bluetooth/...
分类:其他好文   时间:2014-05-15 02:59:38    阅读次数:386
eclipse 搭建salesforce开发环境
Launch Eclipse and click Help > Install New Software.... Click Add.... In the Add Repository dialog, set the Name to "Force.com IDE" and the Location to "http://media.developerforce.com/...
分类:系统相关   时间:2014-05-15 02:51:11    阅读次数:480
LeetCode之Unique Binary Search Trees
Unique Binary Search Trees, Given n, how many structurally unique BST's (binary search trees) that store values 1...n?...
分类:其他好文   时间:2014-05-15 02:32:11    阅读次数:245
[leetcode]_Maximum Depth of Binary Tree
第三道树的题目,我还是不会,我擦,怎么递归算法还是不能很好理解。看来还得好好研究下递归算法。题目:求一棵树的最大深度。思路:递归地求取左子树最大深度 和 右子树最大深度,返回较大值即为 整棵树的 最大深度。代码:public int maxDepth(TreeNode root) { ...
分类:其他好文   时间:2014-05-14 23:07:14    阅读次数:373
LeetCode--Binary Tree Preorder Traversal
Binary Tree Preorder Traversal  Total Accepted: 18022 Total Submissions: 51784My Submissions Given a binary tree, return the preorder traversal of its nodes' values. For example: Given b...
分类:其他好文   时间:2014-05-14 20:43:22    阅读次数:242
配置主机路由表(route)(二)
我们在网路基础的时候谈过关于路由的问题,两部主机之间一定要有路由才能够互通 TCP/IP 的协定,否则就无法进行连线啊! 一般来说,只要有网路介面,该介面就会产生一个路由,例如在鸟哥实验室内部的主机有一个 eth0 及 lo ,所以: [root@desktop40 Desktop]#  route [-nee] [root@desktop40 Desktop]#  route add [-...
分类:其他好文   时间:2014-05-14 20:38:13    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!