码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
[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 ide...
分类:其他好文   时间:2015-12-01 21:04:39    阅读次数:160
[LeetCode]Recover Binary Search Tree
题目描述:(链接)Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) ...
分类:其他好文   时间:2015-12-01 19:35:36    阅读次数:145
[lintcode easy]Convert Sorted Array to Binary Search Tree With Minimal Height
Given a sorted (increasing order) array, Convert it to create a binary tree with minimal height.ExampleGiven [1,2,3,4,5,6,7], return 4 / \ 2 ...
分类:其他好文   时间:2015-12-01 07:10:43    阅读次数:188
[lintcode easy]Binary Tree Paths
Binary Tree PathsGiven a binary tree, return all root-to-leaf paths.ExampleGiven the following binary tree: 1 / \2 3 \ 5All root-to-leaf path...
分类:其他好文   时间:2015-12-01 07:07:19    阅读次数:154
shell 执行ftp的动作和日志合并
一、ftp根据日期下载当前的文件#!/bin/bash date=`date+%Y%m%d` ftp-n<<! open192.168.10.14 userzzxZ@123456 binary lcd/opt/zzx prompt mgetbj.log-$date.txt close bye二、根据日志上传当前的文件#!/bin/bash date=`date+%Y%m%d` ftp-n<<! open192.168.10.14 us..
分类:系统相关   时间:2015-12-01 01:46:11    阅读次数:178
leetcode笔记:Construct Binary Tree from Inorder and Postorder Traversal
这道题考察了先序和中序遍历,先序是先访问根节点,然后访问左子树,最后访问右子树;中序遍历是先遍历左子树,然后访问根节点,最后访问右子树。...
分类:其他好文   时间:2015-12-01 01:44:53    阅读次数:168
【数据结构】建立和平衡AVL二叉树
一步一步写平衡二叉树(AVL树)原文地址:http://www.cppblog.com/cxiaojia/archive/2012/08/20/187776.html我添加了一些内容,以充实整个算法平衡二叉树(Balanced Binary Tree)是二叉查找树的一个进化体,也是第一个引入平衡概念...
分类:其他好文   时间:2015-12-01 01:41:38    阅读次数:206
神经网络(8)---如何求神经网络的参数:cost function的表达
两种分类问题: binary & multi-class下面的是两种类型的分类问题(一种是binary classification,一种是multi-class classification)如果是binary classification的分类问题,则output layer只有一个结点(1 o...
分类:其他好文   时间:2015-11-30 22:08:46    阅读次数:223
95.Unique Binary Search Trees II
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all ...
分类:其他好文   时间:2015-11-30 20:24:50    阅读次数:135
MySQL之CAST与CONVERT 函数的用法
两者具体的语法如下:CAST(value as type); CONVERT(value, type);可以转换的类型是有限制的。这个类型可以是以下值其中的一个:二进制,同带binary前缀的效果 : BINARY 字符型,可带参数 : CHAR() 日期 : DATE 时间: TIME 日...
分类:数据库   时间:2015-11-30 13:12:35    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!