意外发现的文章,等忙完这阵子,准备全都翻译出来!
==============================================
原作者文章链接:http://www.homolog.us/blogs/blog/2011/08/01/how-do-sequencing-errors-a...
分类:
其他好文 时间:
2014-05-23 09:18:54
阅读次数:
276
#includeusing namespace std;int main(){int
n,m,i,j,x[100],a[100],p;cout>n>>m;for(i=1;in){j=(x[i-1]+1)%n;}else{j=x[i-1]+1;}p=1;do{if(a[j]!=0){j++;if(j>...
分类:
其他好文 时间:
2014-05-23 02:47:17
阅读次数:
211
Determine whether an integer is a palindrome.
Do this without extra space.if use recursive, like check the first dig and last
dig, then remove them, c...
分类:
其他好文 时间:
2014-05-23 02:45:15
阅读次数:
230
In the previous section we saw how to use
vectors to solve geometry problems. Now we are going to learn how to use some
basic linear algebra to do lin...
分类:
其他好文 时间:
2014-05-22 04:17:01
阅读次数:
549
--1、while循环declare @sum intdeclare @i intset
@i=1set @sum=0while(@i90) print @iendprint @sum--2、goto语句declare @num intset
@num=100flag:print @numsel.....
分类:
数据库 时间:
2014-05-21 22:20:40
阅读次数:
468
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-05-21 20:00:51
阅读次数:
296
Reverse a linked list from positionmton. Do it
in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m=
2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-05-21 19:08:08
阅读次数:
195
Description
Facer's pet cat just gave birth to a brood of little cats. Having considered the health of those lovely cats, Facer decides to make the cats to do some exercises. Facer has well designe...
分类:
其他好文 时间:
2014-05-21 10:36:57
阅读次数:
297
Piggy-Bank
Problem Description
Before ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound M...
分类:
其他好文 时间:
2014-05-21 10:17:35
阅读次数:
289
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, n satisfy the fol...
分类:
其他好文 时间:
2014-05-21 07:18:02
阅读次数:
301