Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-09-11 20:53:22
阅读次数:
247
1、题目Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?2、思路设置两个指针,一个每次走一步,另一个每次走两步。走两步的一定会追上走...
分类:
其他好文 时间:
2014-09-11 19:04:32
阅读次数:
223
最新的hadoop2.5 安装目录做了一定修改,安装变得稍微简单一点
首先安装准备工具
$ sudo apt-get install ssh
$ sudo apt-get install rsync
配置ssh
$ ssh localhostIf you cannot ssh to localhost without a passphrase, execute the...
分类:
其他好文 时间:
2014-09-10 19:34:21
阅读次数:
201
题目原文:
Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of conv...
分类:
其他好文 时间:
2014-09-09 13:04:18
阅读次数:
156
Divide Two Integers
Divide
two integers without using multiplication, division and mod operator.
分析:...
分类:
其他好文 时间:
2014-09-09 13:01:42
阅读次数:
164
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-09-09 11:49:38
阅读次数:
167
Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using extra space?算法:...
分类:
其他好文 时间:
2014-09-09 11:30:08
阅读次数:
188
Web Pages - Efficient Paging Without The WebGrid If you want to display your data over a number of pages using WebMatrix Beta1, you have two options. ...
分类:
Web程序 时间:
2014-09-07 23:44:45
阅读次数:
397
Determine whether an integer is a palindrome. Do this without extra space.思路:先找出x的有效最高位,然后从两侧依次比较最高位和最低位即可。 1 class Solution { 2 public: 3 bool is...
分类:
其他好文 时间:
2014-09-07 20:57:25
阅读次数:
206
Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For e...
分类:
其他好文 时间:
2014-09-07 13:27:15
阅读次数:
230