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 space for...
分类:
编程语言 时间:
2015-05-03 21:57:40
阅读次数:
132
Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.
注:回数是指正读和倒读都一样的数:需要注意点
(1)负数不是回数
(2)个位数都是回数
思路:
(1)使用前一题的整数的倒序,将一个数倒序,然后和原值比较:存在的问题是可能有溢出...
分类:
其他好文 时间:
2015-05-03 17:34:33
阅读次数:
114
TAB: 调节属性PgUp: 放大PgDn: 缩小Delete: 删除Ctrl+C: 复制Ctrl+V: 粘贴Ctrl+X: 剪贴Ctrl+Z: 撤销Ctrl+Y: 取消撤销Ctrl+F: 查找Ctrl+H: 查找并替换Space: 元器件逆时针旋转90°X: 元器件左右对调Y: 元器件上下对调V-...
分类:
其他好文 时间:
2015-05-01 19:53:06
阅读次数:
147
题目: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?...
分类:
其他好文 时间:
2015-05-01 00:26:54
阅读次数:
174
题目:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?代码:用hashmap版/** * Definition for singly...
分类:
其他好文 时间:
2015-05-01 00:25:22
阅读次数:
157
.ellipsis {white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}文字超出显示省略号
分类:
其他好文 时间:
2015-04-30 17:51:15
阅读次数:
135
查看日志 data/XXX.err发现如下错误[ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace mysql/innodb_index_stats uses space ID: 2...
分类:
数据库 时间:
2015-04-30 15:45:37
阅读次数:
375
Determine whether an integer is a palindrome. Do this without extra space.类似于reverse integer。public class Solution { public boolean isPalindrome(...
分类:
其他好文 时间:
2015-04-30 07:36:35
阅读次数:
119