Palindrome Number
Determine
whether an integer is a palindrome. Do this without extra space.
Some
hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of conver...
分类:
编程语言 时间:
2015-06-11 00:14:55
阅读次数:
173
1. 部署网站到IIS7.5,Window 2008的时候出现这个错误2. 错误信息 Server Error in ‘/’ Application. Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assem...
分类:
Web程序 时间:
2015-06-10 18:40:09
阅读次数:
181
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2015-06-10 11:45:22
阅读次数:
101
Reverse a singly linked list.Reverse a singly linked list.Hint:
A linked list can be reversed either iteratively or recursively. Could you implement both?分析:
/**
* Definition for singly-linked list....
分类:
其他好文 时间:
2015-06-10 10:26:28
阅读次数:
114
Given an array of integers, every element appears twice except for one. Find that single one.Note:
Your algorithm should have a linear runtime complexity. Could you implement it without using extra me...
分类:
其他好文 时间:
2015-06-10 08:59:53
阅读次数:
114
MyEclipse 打开后有时候莫名的在server窗口里抛出“Could not create the view: An unexpected exception was thrown”错误,解决办法:打开myeclipse所在的wordspace文件夹,在下面子文件夹.metadata\.plu...
分类:
系统相关 时间:
2015-06-09 19:12:24
阅读次数:
157
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?
题目解读:
将一个矩阵顺时针旋转90度。
方法一:
如下图所示,先转置,之后和变换的单位矩阵相乘...
分类:
其他好文 时间:
2015-06-09 17:23:38
阅读次数:
129
services.xml中添加true HdfsService http://net.tplink.HDFSService/MathService net.tplink.hdfs.service.IHdfsService net.tplink.hdfs.service.i...
分类:
Web程序 时间:
2015-06-09 16:32:10
阅读次数:
204
linux重新启动错误 could not update ICEauthority file linux重新启动异常 could not update ICEauthority file ? linux启动时报Could not update ICEauthority file /var/lib/gdm/.ICEauthority ? 首先需要通...
分类:
系统相关 时间:
2015-06-09 14:15:17
阅读次数:
355
Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3,
Return [1,3,3,1].Note:
Could you optimize your algorithm to use only O(k) extra space?分析:通过递归设置vector的值,变量i表示当前...
分类:
其他好文 时间:
2015-06-09 13:51:09
阅读次数:
96