码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
Binary Tree Level Order Traversal II--LeetCode
题目: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree {3,9,20,...
分类:其他好文   时间:2015-04-05 11:58:39    阅读次数:111
A - The Moronic Cowmpouter
Description Inexperienced in the digital arts, the cows tried to build a calculating engine (yes, it's a cowmpouter) using binary numbers (base 2) but...
分类:其他好文   时间:2015-04-05 11:52:16    阅读次数:127
杭电 HDU ACM 1390 Binary Numbers
Binary Numbers Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3372    Accepted Submission(s): 2026 Problem Description Given a positiv...
分类:其他好文   时间:2015-04-05 09:17:31    阅读次数:168
LeetCode:Binary Tree Right Side View
原题: Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tree...
分类:其他好文   时间:2015-04-05 09:06:21    阅读次数:113
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 Solutio...
分类:其他好文   时间:2015-04-05 09:04:00    阅读次数:134
Leetcode: Populating Next Right Pointers in Each Node
题目: Given a binary treestruct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; } Populate each next pointer to point to its next right node. If there is no next right...
分类:其他好文   时间:2015-04-05 01:16:00    阅读次数:191
[Leetcode] Binary Tree Right Side View
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:其他好文   时间:2015-04-05 01:12:03    阅读次数:193
【leetcode】Same Tree
Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical an...
分类:其他好文   时间:2015-04-05 01:00:40    阅读次数:218
leetcode_num101_Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / 2 2 / \ / 3 4 4 3 But the f...
分类:其他好文   时间:2015-04-04 23:50:46    阅读次数:338
【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 le...
分类:其他好文   时间:2015-04-04 22:22:21    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!