码迷,mamicode.com
首页 >  
搜索关键字:binary tree right si    ( 32903个结果
mysql多表查询方法(left join(左连接),right join (右连接),inner join (内连接)的区别)
表A记录如下:aID aNum1 a200501112 a200501123 a200501134 a200501145 a20050115表B记录如下:bID bName1 20060324012 20060324023 20060324034 20060324048 2006032408创建这两...
分类:数据库   时间:2014-06-09 19:47:46    阅读次数:248
[leetcode]Scramble String @ Python
原题地址:https://oj.leetcode.com/problems/scramble-string/题意:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty su...
分类:编程语言   时间:2014-06-09 19:02:59    阅读次数:197
linux下tree命令详解
linux下tree命令详解分类: linux 2013-08-16 09:24 259人阅读 评论(0) 收藏 举报(1)tree -a 显示所有文件和目录(2)tree -d 显示目录名称而非内容(3)tree -f 在每个文件或目录之前,显示完整的相对路径名称(4)tree -F 在执行文.....
分类:系统相关   时间:2014-06-09 16:22:45    阅读次数:295
DHTMLX 常用技术
GRID的行设置前景色和背景色$dataItem->set_row_color("red"); // 设置背景色 $dataItem->set_row_style("color:red"); // 设置前景色GRID支持多行显示mygrid.enableMultiline(true);TREE节点提...
分类:Web程序   时间:2014-06-09 15:23:45    阅读次数:245
[leetcode] 22.Same Tree
同是递归简单题public class Solution { public boolean isSameTree(TreeNode p, TreeNode q) { boolean flag = true; if(p == null && q == null) ...
分类:其他好文   时间:2014-06-09 13:46:23    阅读次数:275
[LeetCode OJ] Max Points on a Line—Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
//定义二维平面上的点struct Point{ int x; int y; Point(int a=0, int b=0):x(a),y(b){}};bool operator==(const Point& left, const Point& right){ return...
分类:其他好文   时间:2014-06-08 22:26:17    阅读次数:357
[leetcode]Add Binary @ Python
原题地址:https://oj.leetcode.com/problems/add-binary/题意:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"...
分类:编程语言   时间:2014-06-08 20:28:04    阅读次数:300
LeetCode --- Balanced Binary Tree
题目链接题意: 给定一棵二叉树, 判断是否为平衡二叉树, 这里的平衡二叉树指的是:每个结点的左右子树的深度之差不超过1。附上代码: 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * ...
分类:其他好文   时间:2014-06-08 18:58:35    阅读次数:194
LeetCode --- Minimum Depth of Binary Tree
题目链接求二叉树最小深度,最小深度指的是:从根节点走到最近的叶子结点的最短长度附上代码: 1 /** 2 * Definition for binary tree 3 * struct TreeNode { 4 * int val; 5 * TreeNode *left; 6...
分类:其他好文   时间:2014-06-08 18:43:48    阅读次数:220
Leetcode::Flatten Binary Tree to Linked List
Description:Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The...
分类:其他好文   时间:2014-06-08 18:34:52    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!