题目
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n =
4,
return 1->4->3->2->5->NULL.
Note:
Given m,...
分类:
其他好文 时间:
2014-06-11 06:07:11
阅读次数:
392
循环结构 : while循环 do...while循环(几乎不用)
for循环(使用最多)特点:在给定的条件成立时,反复执行某程序段,直到条件不成立为止。给定的条件为循环条件,反复执行的程序段位循环体。一、while循环while(条件表达式){
循环语句;}#import int mai...
分类:
移动开发 时间:
2014-06-10 21:36:59
阅读次数:
346
A few people have been experiencing the following
error. UPDATE: The reason for it happening is because when your browsers request
a page from us, we ...
分类:
其他好文 时间:
2014-06-10 20:51:52
阅读次数:
273
原题地址:https://oj.leetcode.com/problems/palindrome-number/题意:Determine
whether an integer is a palindrome. Do this without extra space.click to show
spo...
分类:
编程语言 时间:
2014-06-10 16:06:52
阅读次数:
286
一直在使用js编写自以为是面向对象的方法,遇到一个问题,就是定义一个方法,如下:
function ListCommon2(first,second,third)
{
this.First=function ()
{
alert("first do"+first);
}
}
ListCommon2.do...
分类:
Web程序 时间:
2014-06-10 13:53:01
阅读次数:
240
在面向对象编写js脚本时,定义实例方法主要有两种
如下:
function ListCommon2(afirst)
{
var first=afirst;
this.do1=function ()
{
alert("first do"+first);
}
}
ListCommon2.prototy...
分类:
Web程序 时间:
2014-06-10 11:11:26
阅读次数:
242
ios应运程序的五种状态即转化 从apple的官方文档扣下来的5状态:Not runningThe
app has not been launched or was running but was terminated by the
system.InactiveThe app is running...
分类:
移动开发 时间:
2014-06-10 10:43:34
阅读次数:
232
Write an algorithm to print all ways of arranging
eight queens on an 8*8 chess board so that none of them share the same row,
column or diagonal.思路:本质...
分类:
其他好文 时间:
2014-06-10 10:36:29
阅读次数:
182
题目描述:
Write a function to find the longest common prefix string amongst an
array of strings.
很简单的一道题目,但是我写了两个不一样的版本,运行时间确实数倍之差。。贴代码如下:
版本1:
{CSDN:CODE:384511}
这个版本的运行时间为 44 ms...
分类:
其他好文 时间:
2014-06-10 08:18:58
阅读次数:
291
Could not write metadata for '/test'.
这是由于删除一个项目时,没有同时在硬盘上删除该项目,而后又到硬盘文件系统中删除了该项目,才出现这问题的。
到eclipse工作空间workspace中找到\.metadata\.plugins\org.eclipse.core.resources\.projects
在其下面新建一个test再打开eclipse,在项...
分类:
系统相关 时间:
2014-06-10 07:47:39
阅读次数:
329