【题目】Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?【题意】 推断一个单向链表是否有环【思路】 维护两个指针p1和p2,p1.....
分类:
其他好文 时间:
2014-09-28 21:16:55
阅读次数:
195
以下是调节音量的流程: Step_1.首先在调节机台Volume_Up_Key & Volume_Down_Key操作时,系统会调用到AudioManager.java中handleKeyUp & handleKeyDown函数,以 handleKeyDown函数为例: 1 public void....
分类:
其他好文 时间:
2014-09-28 17:48:03
阅读次数:
210
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...
分类:
其他好文 时间:
2014-09-27 23:31:00
阅读次数:
186
[root@server55 ~]# w 15:21:57 up 6:55, 7 users, load average: 1.17, 1.46, 1.38 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/1 192.168.2.111 15...
分类:
其他好文 时间:
2014-09-27 16:47:30
阅读次数:
230
Logstash+Elasticsearch+Kibana+S3+NginxbuildourprivatelogquerysystemSystemstructureHowtosetupLogstash-index(Logstashserver)yum-yinstalljava-1.7.0-openjdkInstallandconfigureElasticsearch(Logstash1.4.2recommendsElasticsearch1.1.1)rpm--importhttp://packages.ela..
分类:
其他好文 时间:
2014-09-27 09:56:30
阅读次数:
322
DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play...
分类:
其他好文 时间:
2014-09-27 00:10:38
阅读次数:
444
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
思路:先沿着主对角线交换矩阵内的数字,然后沿中间列交换。
public class Soluti...
分类:
其他好文 时间:
2014-09-26 20:59:28
阅读次数:
138
美剧《硅谷》中描述的正是硅谷真实的写照。硅谷作为全球科技前沿阵地,不仅是Start-Up的摇篮,更是应用开发者的圣地。据了解,目前硅谷有近10万的iOS应用开发者,他们年龄大多在20-40岁之间,以20-30岁的年轻群体为主,他们或“单打独斗”,或三五成群,期望以最低的整体成本开发出可以迅速上...
分类:
其他好文 时间:
2014-09-26 14:13:58
阅读次数:
332
Storm Cluster安装 ================ @[安装|storm] [官方文档:设置storm cluster](http://storm.incubator.apache.org/documentation/Setting-up-a-Storm-cluster.html) ####1. 上传storm安装包到服务器 - 在1...
分类:
其他好文 时间:
2014-09-26 11:34:49
阅读次数:
199