Scan through array and DP: We iterate through each word and see if it can be formed by using other words. The subproblem is Word Break I. But it is a ...
分类:
其他好文 时间:
2016-12-23 07:48:32
阅读次数:
153
1.对于上一篇讲解的scala的一些补充 val files = Array[String]("a.txt","b.txt","c.txt") for(f <- files){xxxx} 目标一:熟悉Scala Actor并发编程 目标二:为学习Akka做准备 注:我们现在学的Scala Actor ...
分类:
其他好文 时间:
2016-12-23 07:45:43
阅读次数:
170
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. ...
分类:
其他好文 时间:
2016-12-23 01:24:29
阅读次数:
148
明天又开始上课了,预习了一部分知识,感觉php还是有些细节做得不好,不如js和c那么美,这几天的知识偏理论,都是些基础知识,看的像睡觉啊,练习题也不是很多,所以看过一遍之后只有一个大概的印象. ...
分类:
其他好文 时间:
2016-12-23 01:15:47
阅读次数:
145
题目: 解法一55ms: 解法二48ms:(一行) ...
分类:
其他好文 时间:
2016-12-23 01:04:18
阅读次数:
105
这是第一次迭代的作业,内容大概完整,功能都已实现。 由于很多用法都已经忘记,在同学的帮助下完成这次作业,运行结果在控制台上,没有界面化,操作很不方便,以后会渐进改进。 ...
分类:
其他好文 时间:
2016-12-23 01:00:13
阅读次数:
173
(╥╯^╰╥) 1 /* 2 请设计直接插入排序算法函数void insertSort(int a[],int n),对a[1]..a[n]进行升序排序。 3 并测试在不同数据规模下的排序效率。 4 */ 5 #include "Arrayio.h" 6 #define N 10000 /*N为数据 ...
分类:
编程语言 时间:
2016-12-23 00:58:30
阅读次数:
383
1、装完读取插件才可以对EXCEL读取 Excel 2010 读取数据插件 https://www.microsoft.com/zh-CN/download/details.aspx?id=13255 2、ExcelHelper,需要引用Excel COM组件 using System;using ...
分类:
其他好文 时间:
2016-12-22 19:37:50
阅读次数:
174
工厂模式 工厂模式虽然解决了创建多个相似对象的问题,但却没有解决对象识别问题(即怎么样知道一个对象的类型)。因为全部都是Object,不像Date、Array等,因此出现了构造函数模式。 构造函数模式 构造函数模式与工厂模式比较有以下不同 没有显式地创建对象 直接将属性和方法赋给this对象 没有r ...
分类:
Web程序 时间:
2016-12-22 19:23:11
阅读次数:
207
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:
其他好文 时间:
2016-12-22 19:16:26
阅读次数:
161