Given an array nums and a target value k, find the maximum length of a subarray that sums to k. If there isn't one, return 0 instead.Example 1:Given n...
分类:
其他好文 时间:
2016-01-06 06:45:16
阅读次数:
217
Given a binary search tree and a node in it, find the in-order successor of that node in the BST.Note: If the given node has no in-order successor in ...
分类:
其他好文 时间:
2016-01-06 06:45:16
阅读次数:
161
Contains Duplicate:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at lea...
分类:
其他好文 时间:
2016-01-05 20:56:15
阅读次数:
208
Given an array of integers and a number k, the majority number is the number that occurs more than 1/k of the size of the array.Find it.Have you met t...
分类:
其他好文 时间:
2016-01-05 07:09:39
阅读次数:
296
08_01静态库 08_02制作静态库 .a1.新建项目com+shift+n:选择Framework&Library. 2.下一步. 项目名不能为中文.3.编写代码之后.用真机运行.会自动生成一个静态库 4.products文件夹中的.a静态库文件,从红色变成黑色. Show in Find...
分类:
其他好文 时间:
2016-01-05 07:07:42
阅读次数:
187
在Python环境下,pip提供类似yum一样的下载方式,比easy_install方便的多。1、下载get-pip.pywget https://bootstrap.pypa.io/get-pip.py2、安装python get-pip.py3、查看安装位置find / -name pip默认安...
分类:
编程语言 时间:
2016-01-05 07:01:58
阅读次数:
162
约瑟夫环——围成一圈,定义一个数值K,从任意位置开始计数,每走K步删除当前位置结点,直到剩下最后一个结点,求最后一个结点//单链表结构以及Find函数参见2016-1-213:56发表博客SListNode*Joseph(SListNode*&pos,intK)//约瑟夫环
{
assert(pos);
if(K>0)
{
SListNode*..
分类:
编程语言 时间:
2016-01-05 01:35:22
阅读次数:
386
Nginx顺序Nginx 处理每一个用户请求时,都是按照若干个不同阶段(phase)依次处理的,而不是根据配置文件上的顺序。Nginx 处理请求的过程一共划分为 11 个阶段,按照执行顺序依次是post-read、server-rewrite、find-config、rewrite、post-rew...
分类:
其他好文 时间:
2016-01-04 23:57:25
阅读次数:
624
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 two nu...
分类:
其他好文 时间:
2016-01-04 22:35:29
阅读次数:
248
Sublime Text 2 弹出 Package Control - Unable to find git.exe 错误
分类:
其他好文 时间:
2016-01-04 22:20:18
阅读次数:
271