码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
poj 1147 Binary codes
Binary codesTime Limit:1000MSMemory Limit:65536KTotal Submissions:5647Accepted:2201DescriptionConsider a binary string (b1…bN) withNbinary digits. Giv...
分类:其他好文   时间:2015-06-23 09:51:26    阅读次数:89
【LeetCode 221】Maximal Square
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.For example, given the following matr...
分类:其他好文   时间:2015-06-22 20:40:25    阅读次数:128
第十五周阅读程序1:二进制读写
问题及代码: 阅读并运行下面的两个程序,分别用记事本和二进制文件阅读器(请自行下载Binary Viewer等程序,或者用DOS中的Debug程序,并百度其用法)。查看其内容,并理解文件存储的原理。 (1) #include #include #include using namespace std; int main( ) { int a; ofstream ou...
分类:其他好文   时间:2015-06-22 17:57:49    阅读次数:170
CSU 1663: Tree(树链剖分)
1663: Tree Time Limit: 5 Sec  Memory Limit: 128 MB Submit: 26  Solved: 11 [Submit][Status][Web Board] Description CSU has a lot of trees. But there is a tree which is different from the oth...
分类:其他好文   时间:2015-06-22 17:52:45    阅读次数:114
LeetCode Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as00111001011110...
分类:其他好文   时间:2015-06-22 16:29:49    阅读次数:167
POJ 2029 Get Many Persimmon Trees 【 二维树状数组 】
题意:给出一个h*w的矩形,再给出n个坐标,在这n个坐标种树,再给出一个s*t大小的矩形,问在这个s*t的矩形里面最多能够得到多少棵树二维的树状数组,求最多能够得到的树的时候,因为h,w都不超过500,直接暴力 1 #include 2 #include 3 #include 4 #inc...
分类:编程语言   时间:2015-06-22 14:54:13    阅读次数:216
leetCode(22):Binary Tree Level Order Traversal II
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,#,#,15,7}, ...
分类:其他好文   时间:2015-06-22 11:14:13    阅读次数:94
leetCode(21):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, 1...
分类:其他好文   时间:2015-06-22 11:13:01    阅读次数:127
leetCode(23):Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Given binary ...
分类:其他好文   时间:2015-06-22 11:11:22    阅读次数:99
leetcode_89_Gray Code
Gray Code   欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the to...
分类:其他好文   时间:2015-06-22 11:11:12    阅读次数:115
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!