一、题目描述Given a singly linked listL:L0→L1→…→Ln-1→Ln,reorder it to:L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.Fo...
分类:
编程语言 时间:
2014-10-04 17:36:36
阅读次数:
207
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-10-04 01:10:45
阅读次数:
200
背景:前段时间着重从dcmtk和fo-dicom(mDCM)源码角度进行剖析,期望加深对DICOM协议的理解。知其然,知其所以然。如果“所以然”很不好懂,那我们还是先多多“知其然”吧。搞清楚原理的目的不也是为了更好的运用于实践么?所以理论和实践应该彼此交错进行,理论搞不动了就搞搞应用,应用久了就钻研钻研理论。...
分类:
其他好文 时间:
2014-10-03 22:51:25
阅读次数:
1051
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-10-01 09:59:00
阅读次数:
245
想学习一下SVM,所以找到了LIBSVM--A Library for Support Vector Machines,首先阅读了一下网站提供的A practical guide to SVM classification.写一写个人认为主要的精华的东西。SVMs is:a technique fo...
分类:
其他好文 时间:
2014-09-30 16:36:19
阅读次数:
146
柯里化函数之Javascript
定义
根据定义来说,柯里化就是将一个接收“多个”参数的函数拆分成一个或者许多个接收“单一”参数的函数。定义看起来是比较抽象的,下面来举个例子:
代码
12345
function concat(str1,str2){ return str1 + str2;}concat("forever","px") // "fo...
分类:
编程语言 时间:
2014-09-30 12:32:49
阅读次数:
373
jsp连接数据库:<%@pagelanguage="java"import="java.util.*,java.sql.*"pageEncoding="GB18030"%><%Stringusername=request.getParameter("username");Stringpassword=request.getParameter("password");Stringpassword2=request.getParameter("password2");Class.fo..
分类:
数据库 时间:
2014-09-30 04:05:02
阅读次数:
254
写在前面:
这两道题合起来写吧,其实整数转罗马数字我前天就写完了,当我想写罗马数转整数的时候竟然脑子一片空白,想了几分钟就想起来Map,本着学习的目的最终还是不想用Map,坚持C语言,今天脑子里直接涌出了Switch方式转换,看来“蹲在马桶上编程”的方式还是蛮不错的o(^▽^)o
整数转罗马数字:主要建立对应关系,输出时有点像百钱百鸡
罗马数字转整数:输入罗马数字(其实就是字符数组)后,fo...
分类:
其他好文 时间:
2014-09-29 01:29:37
阅读次数:
403
--------------------------------------------------------------------------------------------------------Intel's App FrameworkThe JavaScript library fo...
分类:
移动开发 时间:
2014-09-27 03:09:41
阅读次数:
282
#includeint yanghui(int m,int n){int r=0;if(n==1)return 1;else{r=yanghui(m,n-1)*(m-n+1)/(n-1);return r;}}int main(){int n;while (scanf("%d",&n)==1){fo...
分类:
其他好文 时间:
2014-09-25 23:38:27
阅读次数:
195