本文主要记录在搭建环境时遇到的问题及解决方案啊关于setuptools, pip, virtualenv,环境:win8.1+python2.7.61.setuptools:Easily download, build, install, upgrade, and uninstall Python ...
分类:
编程语言 时间:
2014-10-14 02:05:47
阅读次数:
357
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
//第一种解法
class Solution {
pub...
分类:
其他好文 时间:
2014-10-13 23:41:27
阅读次数:
393
code: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 class Solution { 8 public: 9 int largestRectangleArea(vector &he...
分类:
其他好文 时间:
2014-10-13 21:25:07
阅读次数:
221
Given a m x n matrix,
if an element is 0, set its entire row and column to 0. Do it in place.
class Solution {
public:
void setZeroes(std::vector > &matrix) {
int m = matrix.size();
...
分类:
其他好文 时间:
2014-10-13 18:45:17
阅读次数:
190
webrtc标准定制了web上如何p2p传输实时媒体, 但多人视频并没有规范,同时也是webrtc在企业级解决方案中的一个挑战,webrtc技术视频
会议方案可以归纳为一下几种
1. Mesh solution
这是最简单的方案,其原理就是客户端创建多个one-one的连接,互相relay媒体,这种方案服务器不需要改动,简单,但是客户端占用资源多。
2. Mixer...
分类:
Web程序 时间:
2014-10-13 14:51:09
阅读次数:
263
有一列数,其中有1个数出现了1次,其它数都出现了3次,求这个数。class Solution {public: int singleNumber(int A[], int n) { if(n > i & 1; q = (q + p ) % 3; ...
分类:
其他好文 时间:
2014-10-13 14:22:09
阅读次数:
199
- all features were running on sitecollection level and at site levelBut here is the solution, i do not why it worked but it did work.Although you can...
分类:
其他好文 时间:
2014-10-13 14:17:39
阅读次数:
196
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 class Solution { 8 public: 9 int largestRectangleArea(vector &height)...
分类:
其他好文 时间:
2014-10-12 23:59:48
阅读次数:
173
度娘笔试归来,题目实打实的,感觉真心不易,上百号人就抢那么几个坑......只恨自己平时积累太少啊~ 故曝一道鹅厂面试用的算法题(当时我就死在了这题上),来为度娘家攒一下RP~ 题目: 对于长度为N的一个无序的数组a[1..N],请将a进行排序,要求所有正数都排在0之前,所有负数都排...
分类:
编程语言 时间:
2014-10-12 23:19:28
阅读次数:
301
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],
[1,4],
]...
分类:
其他好文 时间:
2014-10-12 20:53:58
阅读次数:
191