码迷,mamicode.com
首页 >  
搜索关键字:add binary    ( 48151个结果
批处理获取拖入文件信息
@ECHOOFFecho%1:获取拖入文件完整路径。如:"E:\DDC\add.txt"echo%~1:获取拖入文件完整路径,并去掉首尾引号。如:E:\DDC\add.txtecho%~nx1:获取拖入文件文件名及后缀。如:add.txtecho%~n1:获取拖入文件文件名。如:addecho%~x...
分类:其他好文   时间:2014-04-30 04:19:39    阅读次数:500
LeetCode1:Two Sum
题目: Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the t...
分类:其他好文   时间:2014-04-30 03:20:07    阅读次数:502
Construct Binary Tree from Preorder and Inorder Traversal
Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.思路:由前序遍历数组和中序遍历...
分类:其他好文   时间:2014-04-30 02:20:33    阅读次数:366
LeetCode——Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:其他好文   时间:2014-04-30 00:21:32    阅读次数:536
ahjesus ubuntu10.4安装ruby2.1.1
sudo apt-get install python-software-propertiessudo apt-add-repository ppa:brightbox/ruby-ngsudo apt-get updatesudo apt-get install ruby2.1ruby2.1 -vr...
分类:其他好文   时间:2014-04-28 14:18:29    阅读次数:445
[leetcode] Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".给定两个二进制的字符串,返回他们的和。对于a,b两个二进制字符串,首先通过交换使a的长度小于b...
分类:其他好文   时间:2014-04-28 02:05:20    阅读次数:502
How can I add a new user as sudoer using the command line?
Two ways to use sudo command for a standard user account:First,If you want to use sudo command for a standard user account, then you need to add this ...
分类:其他好文   时间:2014-04-28 00:42:49    阅读次数:616
线段树 FOJ 2174
FOJ 2174区间跟新,区间询问: 1 #include 2 #include 3 #include 4 #define lson l,mid,rt>1;18 if(add[rt]!=0){19 add[rt>1;34 if(L>1;45 build(...
分类:其他好文   时间:2014-04-27 21:36:09    阅读次数:460
leetcode day4 -- Binary Tree Postorder(Preorder) Traversal && Edit Distance
?? 1、Binary Tree Postorder Traversal Given a binary tree, return the postorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 retu...
分类:其他好文   时间:2014-04-27 18:58:59    阅读次数:481
myeclipse中配置spring xml自动提示
这是一篇分享技巧的文章:myeclipse中配置spring xml自动提示。 ① window -> preferences -> MyEclipse -> Files and Editors -> XML -> XML Catalog ② 选择User Specified Entries,点击add按钮弹出一个选框,填入以下三项 i. Location: D:\baidu...
分类:编程语言   时间:2014-04-27 17:49:51    阅读次数:667
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!