原题链接:https://leetcode.com/problems/symmetric-tree/ 题目如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center) ...
分类:
其他好文 时间:
2017-01-04 21:50:47
阅读次数:
145
平衡二叉树(Balanced Binary Tree)又被称为AVL树(有别于AVL算法),且具有以下性质:它是一 棵空树或它的左右两个子树的高度差的绝对值不超过1,并且左右两个子树都是一棵平衡二叉树。平衡二叉树的常用实现方法有红黑树、AVL、替罪羊树、Treap、伸展树等。 最小二叉平衡树的节点的 ...
分类:
其他好文 时间:
2017-01-04 20:04:50
阅读次数:
141
二叉查找树(Binary Search Tree),(又:二叉搜索树,二叉排序树)它或者是一棵空树,或者是具有下列性质的二叉树: 若它的左子树不空,则左子树上所有结点的值均小于它的根结点的值; 若它的右子树不空,则右子树上所有结点的值均大于它的根结点的值; 它的左、右子树也分别为二叉排序树。 ...
分类:
其他好文 时间:
2017-01-04 20:02:57
阅读次数:
137
Given a non-empty binary search tree and a target value, find the value in the BST that is closest to the target. Note: Given target value is a floati ...
分类:
其他好文 时间:
2017-01-04 07:51:18
阅读次数:
149
验证一个list是不是一个BST的preorder traversal sequence。 Given an array of numbers, verify whether it is the correct preorder traversal sequence of a binary sear ...
分类:
其他好文 时间:
2017-01-04 07:50:06
阅读次数:
140
感谢: XNOR-Net ImageNet Classification Using Binary Convolutional Neural Networks ...
分类:
Web程序 时间:
2017-01-03 16:51:49
阅读次数:
359
一致性哈希算法 摘自:http://blog.codinglabs.org/articles/consistent-hashing.html 算法简述 一致性哈希算法(Consistent Hashing)最早在论文《Consistent Hashing and Random Trees: Dist ...
分类:
移动开发 时间:
2017-01-03 13:20:05
阅读次数:
217
//转换成流字节,输出浏览器下载var byti = file.SaveToStream().GetBuffer(); ////通知浏览器保存文件,其实也就是输出到浏览器Response.Clear();Response.ContentType = "application/octet-stream ...
分类:
其他好文 时间:
2017-01-03 11:34:58
阅读次数:
273
AC代码: 题目来源: http://www.lintcode.com/zh-cn/problem/identical-binary-tree/ ...
分类:
其他好文 时间:
2017-01-01 23:41:33
阅读次数:
232
AC代码: 题目来源: http://www.lintcode.com/zh-cn/problem/maximum-depth-of-binary-tree/ ...
分类:
其他好文 时间:
2017-01-01 22:37:42
阅读次数:
208