安装setuptools的时候,不能再注册表中识别出来python2.7在网上找了方法,仅作笔记,供下次使用方法:新建一个register.py
文件,把一下代码贴进去,保存(G盘) 1 # 2 # script to register Python 2.0 or later for use wit...
分类:
编程语言 时间:
2014-06-29 14:45:14
阅读次数:
312
1 #include 2 #include 3 using namespace std; 4
const int Max = 100000; 5 int num[Max]; 6 int find_[Max]; 7 bool found[Max]; 8
int pos[Max] = { 9 ...
分类:
其他好文 时间:
2014-06-07 03:49:29
阅读次数:
250
Given a strings1, we may represent it as a
binary tree by partitioning it to two non-empty substrings recursively.Below is
one possible representation...
分类:
其他好文 时间:
2014-06-04 20:11:38
阅读次数:
303
Given two binary strings, return their sum
(also a binary string).For example,a ="11"b ="1"Return"100".class Solution
{public: string addBinary(str...
分类:
其他好文 时间:
2014-05-30 08:39:11
阅读次数:
270
二叉堆(Binary
Heap)二叉堆是完全二叉树(或者近似完全二叉树);其满足堆的特性:父节点的值>=(<=)任何一个子节点的键值,并且每个左子树或者右子树都是一
个二叉堆(最小堆或者最大堆);一般使用数组构建二叉堆,对于array[i]而言,其左子节点为array[2*i],其右子节点为 arr...
分类:
其他好文 时间:
2014-05-29 14:02:37
阅读次数:
309
The following MySQL error might occur if you are
using MySQL replication and binary logs.mysql> show binary logs;ERROR 1381
(HY000): You are not using...
分类:
其他好文 时间:
2014-05-29 01:42:38
阅读次数:
518
手头有一块6410开发板,已经有别人提供的uboot代码,但是在检测dm9000时显示下面的输出:Net: No ethernet
found.当然其他网络命令例如ping等都执行失败。但是在(include/configs/*6410*.h)下添加一行(增加debug)信息:#define
D.....
分类:
其他好文 时间:
2014-05-28 18:54:24
阅读次数:
483
HTTP
POST上传通用方法,支持文字、图片、文件等。依赖jar包下载地址:http://hc.apache.org/downloads.cgi下载HttpClient
*** Binary。将HttpComponents libraries中的httpmime-4.3.3.jar拷贝到Andro...
分类:
移动开发 时间:
2014-05-28 01:47:56
阅读次数:
382
原题地址:https://oj.leetcode.com/problems/path-sum/题意:Given
a binary tree and a sum, determine if the tree has a root-to-leaf path such that
adding up all...
分类:
编程语言 时间:
2014-05-26 18:37:11
阅读次数:
295
原题地址:https://oj.leetcode.com/problems/unique-binary-search-trees-ii/题意:接上一题,这题要求返回的是所有符合条件的二叉查找树,而上一题要求的是符合条件的二叉查找树的棵数,我们上一题提过,求个数一般思路是动态规划,而枚举的话,我们就考...
分类:
编程语言 时间:
2014-05-26 18:30:01
阅读次数:
256