作者归档:在线疯狂

RSS feed of 在线疯狂

Windows virtualenv 安装 psycopg2

访问 http://www.stickpeople.com/projects/python/win-psycopg/ 

根据Python版本和处理器版本下载相应的psycopg2安装文件到本地。

下载完毕后不要双击执行,假设安装文件放在 C:\ ,virtualenv目录为 C:\virtualenv,执行如下命令:

C:\> C:\virtualenv\Scripts\activate.bat 
(virtualenv) C:\> easy_install psycopg2-2.6.2.win32-py2.7-pg9.5.3-release.exe

LeetCode Weekly Contest 27解题报告

LeetCode Weekly Contest 27是LeetCode举办的第三十二场正式周赛,共4道题目,比赛时长1.5小时。

比赛链接:https://leetcode.com/contest/leetcode-weekly-contest-27/

题解列表:

LeetCode 557. Reverse Words in a String III

LeetCode 554. Brick Wall

LeetCode 556. Next Greater Element III

LeetCode 549. Binary Tree Longest Consecutive Sequence II

[LeetCode]Binary Tree Longest Consecutive Sequence II

题目描述:

LeetCode 549. Binary Tree Longest Consecutive Sequence II

Given a binary tree, you need to find the length of Longest Consecutive Path in Binary Tree.

Especially, this path can be either increasing or decreasing. For example, [1,2,3 ...

继续阅读