原题地址:https://oj.leetcode.com/problems/word-break-ii/题意:Given
a stringsand a dictionary of wordsdict, add spaces insto construct a sentence
where each ...
分类:
编程语言 时间:
2014-06-03 07:13:21
阅读次数:
339
Hibernate应用SQL查询返回实体类型Hibernate使用SQL查询返回实体类型
以前,使用SQL查询,结果放在 RS 结果集中,还要去转换影射到Java类中。Hibernate中,可以自动帮我们注入到Hibernate 甚至是 非
Hibernate 类型当中。 String sql .....
分类:
数据库 时间:
2014-06-03 06:51:25
阅读次数:
295
这篇博客根据中文自然语言预处理的步骤分成几个板块。以做LDA实验为例,在处理数据之前,会写一个类似于实验报告的东西,用来指导做实验,OK,举例:一,实验数据预处理(python,结巴分词)1.对于爬取的评论做分词和词性标注处理(mac-result.txt)2.对于结果只用公版的停用词表去停用词,不...
分类:
编程语言 时间:
2014-06-03 06:45:21
阅读次数:
385
Net中正则表达式的简单使用方法及常见验证判断判断字符串是只是数字我们可以这样写:return new
System.Text.RegularExpressions.Regex(@"^([0-9])[0-9]*(\.\w*)?$").IsMatch(strNumber);或者return
Syste...
分类:
Web程序 时间:
2014-06-03 05:38:27
阅读次数:
293
1.RuntimeExceptionpublic class RuntimeException
{ public static void main(String[] args) { // TODO Auto-generated method stub
String ...
分类:
编程语言 时间:
2014-06-03 04:47:09
阅读次数:
352
1) vamei 的python教程:Python快速教程
分类:
编程语言 时间:
2014-06-03 04:14:01
阅读次数:
204
原题地址:https://oj.leetcode.com/problems/candy/题意:There
areNchildren standing in a line. Each child is assigned a rating value.You are
giving candies to ...
分类:
编程语言 时间:
2014-05-31 21:58:12
阅读次数:
410
package com.jni;public class JNITest { static{
System.loadLibrary("JNI"); } public native String getCompterName(); public
native void fastWriteFile(S....
分类:
其他好文 时间:
2014-05-31 17:01:30
阅读次数:
202
原题地址:https://oj.leetcode.com/problems/gas-station/题意:There
areNgas stations along a circular route, where the amount of gas at
stationiisgas[i].You ha...
分类:
编程语言 时间:
2014-05-31 16:58:18
阅读次数:
259
一、算法抽象
它们一般是在具体算法的基础上总结、提炼、分析出来的,再反过来用于指导解决其它问题。它们适用于某一类问题的解决,用辩证法的观点看,抽象的算法和具体的算法就是抽象与具体、普遍性与特殊性、共性和个性的关系。马是白马的抽象,无论是白马还是红马,都是马,我们用马的唯一本质属性——染色体来决定一种...
分类:
编程语言 时间:
2014-05-31 15:37:32
阅读次数:
296