Determine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie, -1)If you are thinki...
分类:
其他好文 时间:
2014-11-15 09:58:31
阅读次数:
222
系统:CentOS6.5x86_64软件:httpd2.4.10以上次安装的httpd2.4.10为例。主配置文件在/etc/httpd2.4/httpd.conf扩展配置文件在/etc/httpd2.4/extra/*0.在第2部分是配置文件的大概,在3里面把一几个简单的扩展配置文件说明一下。因为是初学者,所以有很多不会,就略过啦。下次再..
分类:
Web程序 时间:
2014-11-15 06:42:07
阅读次数:
229
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2014-11-14 17:21:06
阅读次数:
250
在Apache的默认配置文件夹中有一个extra目录,这个目录是用来存放Apache其他模块的配置文件。这些文件是Apache针对常用的模块而设置并提供的,它们都是通过Include指令来加载,如果需要使用则只需要在httpd.conf文...
分类:
Web程序 时间:
2014-11-14 12:46:33
阅读次数:
202
Intent的构成Intent能够带有action,data(由URI表达),extra data(key/value map,键值对),指定的类名(成为component name)。一个intent至少携带上述的一个内容。Action。Action名,在上一笔记中已经给出两种样例,一种是系统自带...
分类:
移动开发 时间:
2014-11-13 14:21:33
阅读次数:
243
Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up:Can you solve it without using extra space?怎...
分类:
其他好文 时间:
2014-11-13 00:20:11
阅读次数:
281
leetcode-Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra spac...
分类:
其他好文 时间:
2014-11-12 16:39:30
阅读次数:
197
NotificationListenerService是Android 4.3 之后新增的接口服务,用于获取系统Notification信息,这在之前的Android版本是无法直接办到的。在Android 4.4中,增加了Notification.extra变量,使得获取Notification相关信息更加丰富,这些接口的开放更加利于三方应用的使用,但同时也会带来一些隐私问题。本文对NotificationListenerService的使用进行了分析,如果觉得不错请推荐一下吧 :)...
分类:
移动开发 时间:
2014-11-11 22:55:06
阅读次数:
431
题目描述:
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
思路:
设置一个快指针fast,一个慢指针slow。快指...
分类:
其他好文 时间:
2014-11-11 16:41:06
阅读次数:
179
题目描述:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:初始化一个快指针fast,一个慢指针slow。快指针一次移动两个单位,慢指针一次移动一个单位。如果链表有环,则两指针必然会相遇。否则若fas...
分类:
其他好文 时间:
2014-11-11 16:40:35
阅读次数:
208