码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
leetcode@ [199] Binary Tree Right Side View (DFS/BFS)
https://leetcode.com/problems/binary-tree-right-side-view/ Given a binary tree, imagine yourself standing on the right side of it, return the values o
分类:其他好文   时间:2016-03-13 00:43:26    阅读次数:231
mybatis包含jdbc类型
MyBatis 通过包含的jdbcType类型 BIT FLOAT CHAR TIMESTAMP OTHER UNDEFINED TINYINT REAL VARCHAR BINARY BLOB NVARCHAR SMALLINT DOUBLE LONGVARCHAR VARBINARY CLOB
分类:数据库   时间:2016-03-11 18:43:35    阅读次数:187
uva 558 tree(不忍吐槽的题目名)——yhx
You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary
分类:其他好文   时间:2016-03-11 00:55:28    阅读次数:288
uva 122 trees on the level——yhx
题目如下:Given a sequence of binary trees, you are to write a program that prints a level-order traversal of each tree. In this problem each node of a bin
分类:其他好文   时间:2016-03-10 23:41:00    阅读次数:209
67. Add Binary
/* Given two binary strings, return their sum (also a binary string). For example, a = "11" b = "1" Return "100 */ class Solution { public: string add
分类:其他好文   时间:2016-03-10 12:38:48    阅读次数:201
[LeetCode]题解(python):108-Convert Sorted Array to Binary Search Tree
题目来源: https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/ 题意分析: 给出一个排好序的数组,根据这个数据形成一个高度平衡的搜索二叉树。 题目思路: 将中位数为根节点,中位数左边为左子树,右边为右子树
分类:编程语言   时间:2016-03-09 16:02:05    阅读次数:200
[LeetCode]题解(python):107-Binary Tree Level Order Traversal II
题目来源: https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ 题意分析: 从底向上宽度遍历二叉树。 题目思路: 自顶向下遍历二叉树后将答案翻转。 代码(python): # Definition for a bin
分类:编程语言   时间:2016-03-09 15:52:34    阅读次数:365
Leet Code OJ 102. Binary Tree Level Order Traversal [Difficulty: Easy]
题目: Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).For example: Given binary tree {3,9,20,#,#,15,7}, return its level order tr...
分类:其他好文   时间:2016-03-08 14:59:54    阅读次数:108
[leetcode] Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth. class Solution { public: int maxDepth(TreeNode* root) { int depth=0; if(!root) return depth; int a=maxDep
分类:其他好文   时间:2016-03-08 10:46:14    阅读次数:189
[leetcode] Invert binary tree.
Invert a binary tree. class Solution { public: TreeNode* invertTree(TreeNode* root) { TreeNode* temp; if(root) { temp=root->left; root->left=root->rig
分类:其他好文   时间:2016-03-08 10:35:17    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!