【题目】原文:1.3 Design an algorithm and write code
to remove the duplicate characters in a string without using any additional
buffer. NOTE: One or two add...
分类:
其他好文 时间:
2014-06-02 21:32:04
阅读次数:
284
Radar InstallationDescriptionAssume the
coasting is an infinite straight line. Land is in one side of coasting, sea in
the other. Each small island is...
分类:
其他好文 时间:
2014-06-02 14:04:03
阅读次数:
265
现在才开始着手写点Nodejs 东西.之前都是在ubuntu系统和centos系统下进行编程的,现在来了点兴趣,
搞下windows下的Nodejs 编程开发.主要是为了方便.
Don`t share your happiness with the one who don`t care about you .
I hope you are not the one.
好了,首先我们到官方网站...
域模型
关系数据模型:
按照外键映射:
按照主键映射:
基于外键映射的 1-1
对于基于外键的1-1关联,其外键可以存放在任意一边,在需要存放外键一端,增加many-to-one元素。为many-to-one元素增加unique=“true” 属性来表示为1-1关联
另一端需要使用one-to-one元素,该元素使用...
分类:
系统相关 时间:
2014-06-01 16:20:13
阅读次数:
508
【题目】
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 following condition:
1 ≤ m ≤ n ≤ length of list.
【题意】
...
分类:
其他好文 时间:
2014-06-01 15:08:34
阅读次数:
237
Finding NemoTime Limit: 2000MSMemory Limit:
30000KTotal Submissions: 7376Accepted: 1717DescriptionNemo is a naughty boy. One
day he went into the deep...
分类:
其他好文 时间:
2014-06-01 12:23:25
阅读次数:
200
题目链接:http://poj.org/problem?id=3252题意:给出一个二进制区间,求出0的个数不小于1的个数这样的二进制个数解法:数位DP,定义状态dp[len][num_zero][num_one],num_zero
定义为写0的个数。 1 #include 2 #include 3...
分类:
其他好文 时间:
2014-06-01 12:06:33
阅读次数:
191
Merge Sorted ArrayGiven two sorted integer
arrays A and B, merge B into A as one sorted array.Note: You may assume that A
has enough space (size that ...
分类:
其他好文 时间:
2014-06-01 12:04:32
阅读次数:
175
title:
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
37107287533902102798797998220837590246510135740250
4637693767749000971264812489697007805041701826053...
分类:
其他好文 时间:
2014-06-01 08:53:33
阅读次数:
276
最近学习了ELF格式文件,在学习过程中产生过很多疑惑,也翻找了不少网上资源。期间经常会惊讶于设计者的思路。预计整个工程分成三个部分,这里是第一个部分,介绍了一些前期遇到的问题。因为这是这个月的最后一天,且特别想去赶5:50的“X战警-逆转未来”,所以就将未完品发了出来。...
分类:
其他好文 时间:
2014-06-01 07:11:30
阅读次数:
360