码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
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 mat...
分类:其他好文   时间:2016-01-13 12:45:14    阅读次数:116
lintcode 中等题:binary tree level order traversal 二叉树的层数遍历
题目二叉树的层次遍历给出一棵二叉树,返回其节点值的层次遍历(逐层从左往右访问)样例给一棵二叉树{3,9,20,#,#,15,7}: 3 / \9 20 / \ 15 7返回他的分层遍历结果:[ [3], [9,20], [15,7]]挑战挑战1:只使用一个队列去实现它挑战2:用DF...
分类:其他好文   时间:2016-01-13 10:28:31    阅读次数:186
Jan 12 - Lowest Common Ancestor of a Binary Search Tree; Tree; BST; Recursion;
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { v...
分类:其他好文   时间:2016-01-13 07:05:18    阅读次数:180
Java [Leetcode 110]Balanced Binary Tree
题目描述:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the ...
分类:编程语言   时间:2016-01-12 18:05:51    阅读次数:166
Segment Tree Build II
The structure of Segment Tree is a binary tree which each node has two attributes start and end denote an segment / interval.start and end are both in...
分类:其他好文   时间:2016-01-12 06:37:35    阅读次数:328
Firemonkey使用iOS的第三方静态库(Link Binary With Libraries)
最近需要从内存流中直接播放音频,想到了使用第三方音频播放库bass。在windows上可以很方便的使用相应动态库(具体参考万一的博客),但在iOS上却没有相应的使用介绍,准确的说是没有用于Firemonkey上的示例。在它官方论坛找到一个用于OSX的Demo,通过分析和测试,研究出了Firemonk...
分类:移动开发   时间:2016-01-11 22:17:21    阅读次数:230
leetcode@ [129] Sum Root to Leaf Numbers (DFS)
https://leetcode.com/problems/sum-root-to-leaf-numbers/Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a n...
分类:其他好文   时间:2016-01-11 22:16:10    阅读次数:136
LeetCode 100 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 ident...
分类:其他好文   时间:2016-01-11 14:07:08    阅读次数:135
tftp常用命令
root@hbg:/# tftpBusyBox v1.22.1 (2015-12-18 15:33:52 CST) multi-call binary.Usage: tftp [OPTIONS] HOST [PORT]Transfer a file from/to tftp server -l FI...
分类:其他好文   时间:2016-01-11 13:33:09    阅读次数:223
<LeetCode OJ> 257. Binary Tree Paths
257. Binary Tree Paths My Submissions Question Total Accepted: 29282 Total Submissions: 113527 Difficulty: Easy Given a binary tree, return all root-to-leaf paths. For example, gi...
分类:其他好文   时间:2016-01-11 06:49:24    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!