安装 cd ~/bin/bashperl -MNet::FTP -e \'$ftp = new Net::FTP("ftp.ncbi.nlm.nih.gov", Passive => 1);$ftp->login; $ftp->binary;$ftp->get("/entrez/entrezdire ...
分类:
其他好文 时间:
2018-11-02 10:18:07
阅读次数:
253
Dhaka2011 A Binary Matrix 题目描述 :有一个$n \times m$的$01$矩阵,这一矩阵第一行和最后一行是相邻的,第一列和最后一列是相邻的,现在每次可以交换相邻的两个位置的数(四相邻),问最少多少次操作使得每一行的$1$的个数相同,每一列的$1$的个数相同,如果不行,则 ...
分类:
其他好文 时间:
2018-11-02 01:58:31
阅读次数:
165
Root of AVL Tree An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at mo ...
分类:
其他好文 时间:
2018-11-02 01:44:39
阅读次数:
184
https://leetcode.com/tag/binary-search/ ...
分类:
其他好文 时间:
2018-11-01 11:59:34
阅读次数:
206
AVL Tree An AVL tree is a kind of balanced binary search tree. Named after their inventors, Adelson-Velskii and Landis, they were the first dynamicall ...
分类:
其他好文 时间:
2018-11-01 11:48:10
阅读次数:
132
原因: 因为安装numpy用的是 pip来安装的 pypi官方对于numpy的库已经升级了,但是升级后的版本与其他的库不匹配 所以报错 解决: 先把已经安装的numpy卸载: pip uninstall numpy 再安装低版本的numpy: pip install -U numpy==1.14.5 ...
分类:
编程语言 时间:
2018-10-31 20:01:53
阅读次数:
755
【题意概述】 给出一棵树,树上的边有两个值a和b,你可以在[0,limit]范围内选择一个整数delta,树上的边的权值为a+b*delta,现在问当delta为多少的时候树的直径最小、最小直径是多少。 【题解】 每条边的边权都是一次函数,那么直径是单峰函数。单峰函数求最小值我们可以用三分法。 注意 ...
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation. Note: The given inte ...
分类:
其他好文 时间:
2018-10-31 12:32:22
阅读次数:
134
链接https://blog.csdn.net/longguangfu8/article/details/78948213 关于base64编码Encode和Decode编码的几种方式 Base64是一种能将任意Binary资料用64种字元组合成字串的方法,而这个Binary资料和字串资料彼此之间是 ...
分类:
编程语言 时间:
2018-10-31 12:32:10
阅读次数:
167
"Trees On the Level" 竟然还有 这种东西!!! 2018 年 10 月 30 日,真是一个不幸的日子. 在这一天,我终于把这道题 A 掉了,反反复复提交了十多次,终于在今天,我明白了为什么错: UVa 坑爹输出格式!!!输出文件的结尾必须有一个空行!!! ...
分类:
其他好文 时间:
2018-10-31 01:16:46
阅读次数:
149