题目:
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 numbers such that they add up to the ta...
分类:
其他好文 时间:
2015-04-23 21:49:00
阅读次数:
153
题目:You are given an n x n 2D matrix represengting an image.Rotate the image by 90 degrees(clockwise).Follow up:Could you do this in-place?给定一副由 N * N ...
分类:
其他好文 时间:
2015-04-23 21:41:56
阅读次数:
138
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...
分类:
编程语言 时间:
2015-04-23 21:19:09
阅读次数:
138
当你需要编写大型程序时,你可能想要写一段代码供其它地方调用,或者将程序中的相同逻辑抽出来,这时你就需要用到函数。但函数不仅能提供这些功能,通过使用函数还能帮助我们更容易的理解代码。
定义函数
下面的代码定义了一个函数fib,用于计算Fibonacci数列:
>>> def fib(n):
"""Print a Fibonacci series up to n."""
a,...
分类:
编程语言 时间:
2015-04-23 15:41:54
阅读次数:
187
leetcode上的一道题目,虽然不难,但是考察了数据结构中很多的知识Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum ...
分类:
编程语言 时间:
2015-04-23 12:52:25
阅读次数:
175
problem:
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).
For example:
Given binary tree...
分类:
其他好文 时间:
2015-04-23 11:02:24
阅读次数:
163
Description
An earthquake takes place in Southeast Asia. The ACM (Asia Cooperated Medical team) have set up a wireless network with the lap computers, but an unexpected aftershock attacked, all c...
分类:
Web程序 时间:
2015-04-23 09:43:08
阅读次数:
142
本文主要参考:http://ysz520020.blog.163.com/blog/static/352595722011969264745 linux kill掉其他的登录用户 :方法一:使用w查看有多少个用户在登陆,结果如下:01:52:52 up 18 min, 3 use...
分类:
系统相关 时间:
2015-04-22 20:36:33
阅读次数:
186
很久没有更新博客了,真是堕落啊,几次想提起笔,却总是被各种琐事耽搁,以后会多写文章记录点滴。背景 随着android应用体积的不断增大,以及应用版本发布的不断更迭,用户的升级成了一个问题,google也意识到不断更新应用对用户流量的损耗,在Google I/O 上提及的 Smart App up.....
分类:
移动开发 时间:
2015-04-22 20:22:27
阅读次数:
366
写插件的栗子 干前端两年了,第一次自己试着封装小插件,虽然有点迟但是依旧很兴奋!UP
分类:
Web程序 时间:
2015-04-22 20:09:35
阅读次数:
143