码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
基本数据类型包装类
【基本数据类型对象包装类】 想要对基本类型数据进行更多的操作,最方便的方式就是将其封装成对象。 为啥呢?因为在对象描述中就可以定义更多的属性和行为对该基本数据类型进行操作。 【八种基本数据类型的包装类】 byte ——Byte short ——Short int ——Integer long Lon ...
分类:其他好文   时间:2017-02-22 19:24:50    阅读次数:231
C#文件写入操作
private const string File_Name = @"C:\log.txt"; //const表示不能更改的变量,也可以当作常量 static void Main(string[] args) { if(File.Exists(File_Name)){ //向现有的文件中追加文... ...
分类:Windows程序   时间:2017-02-22 18:12:07    阅读次数:215
Given two binary string, return their sum (also a binary string)
主要思路:将二进制转化为十进制,然后进行十进制加法,最后再将加法所得的结果转化为二进制 public class BinarySum2 { public static void main(String[] args) { String a = "111"; String b = "101"; int ...
分类:其他好文   时间:2017-02-22 11:35:49    阅读次数:172
99. 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) space i ...
分类:其他好文   时间:2017-02-21 21:52:21    阅读次数:190
支付系统中的常用工具
StringUtils.java 处理常用字符串:判断是否为空isEmpty(String value); 按字典排序并拼接参数:createLinkString(Map<String,String> params); 支付系统中的签名和验签SignUtils.java ...
分类:其他好文   时间:2017-02-21 19:26:44    阅读次数:313
A N EAR -D UPLICATE D ETECTION A LGORITHM T O F ACILITATE D OCUMENT C LUSTERING——有时间看看里面的相关研究
摘自:http://aircconline.com/ijdkp/V4N6/4614ijdkp04.pdf In the syntactical approach we define binary attributes that correspond to each fixed length subs ...
分类:其他好文   时间:2017-02-20 18:35:24    阅读次数:224
windows下命令行终端使用rz上传文件参数详解
rz命令: 参数解析: -a 表示使用ascii码格式传输文件,如果是Dos格式的文件,会转换为unix格式-b –binary 用binary的方式上传下载,不解释字符为ascii-e –escape 强制escape 所有控制字符,比如Ctrl+x,DEL等-r 使用 Crash recover ...
分类:Windows程序   时间:2017-02-20 16:43:04    阅读次数:435
Deep compression code
https://github.com/songhan/SqueezeNet-Deep-Compression ...
分类:其他好文   时间:2017-02-20 15:48:47    阅读次数:653
【HDU】1663 Eat the Trees
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1693 给出一块$r*c$的地,其中有的土地上种上了树,有些没有种上树,只能在种上树的地上走,通过走若干个回路,来走遍所有种树的土地。问有多少种走法。 插头DP。 既然可以走多个回路,似乎就不需要考虑括号 ...
分类:其他好文   时间:2017-02-20 14:01:42    阅读次数:215
[LeetCode] Find Largest Value in Each Tree Row 找树每行最大的结点值
You need to find the largest value in each row of a binary tree. Example: 这道题让我们找二叉树每行的最大的结点值,那么实际上最直接的方法就是用层序遍历,然后在每一层中找到最大值,加入结果res中即可,参见代码如下: 解法一: ...
分类:其他好文   时间:2017-02-20 00:57:18    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!