2016年6月29日
摘要:
题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co
阅读全文
posted @ 2016-06-29 10:59
赵俊庭
阅读(205)
推荐(0)
2016年6月5日
摘要:
题目描述: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle
阅读全文
posted @ 2016-06-05 20:04
赵俊庭
阅读(304)
推荐(0)
posted @ 2016-06-05 19:53
赵俊庭
阅读(5)
推荐(0)
2016年4月17日
摘要:
一、安装并配置maven 1. 将助教上传的apache-maven压缩包解压缩。 2. 配置MAVEN_HOME环境变量 首先,对".bash_profile"文件进行修改: 在终端输入"vim .bash_profile"对该文件进行编辑,并按照实验要求在"MAVEN_HOME"后加"/bin"
阅读全文
posted @ 2016-04-17 21:32
赵俊庭
阅读(616)
推荐(0)
2016年3月30日
摘要:
本周的作业,是“软件测试基础”教材 ExerciseSection2.3 的课后习题。 题目要求,用下面的方法printPrimes()完成相应问题。 代码如下: (a) 为printPrimes()方法画控制流图。 (b) 考虑测试用例t1=(n=3)和t2=(n=5)。即使这些测试用例游历pri
阅读全文
posted @ 2016-03-30 02:55
赵俊庭
阅读(395)
推荐(0)
2016年3月19日
摘要:
一、安装Junit及Hamcrest 1. 在Intellij IDEA中新创建一个工程。 2. 右键->Open Module Settings->Libraries,添加Junit及Hamcrest。jar包导入完成。 二、创建三角形类Triangle。 三角形的情况分为: “不是三角形”,“等
阅读全文
posted @ 2016-03-19 00:07
赵俊庭
阅读(148)
推荐(0)
2016年3月7日
摘要:
作业题目: A project is a collection of coordinated work activities conducted within a specific time frame that utilizes resources to achieve specified obj
阅读全文
posted @ 2016-03-07 00:47
赵俊庭
阅读(149)
推荐(0)
摘要:
1. Identify the fault. for循环的结束条件错误,少第一个元素,即:x[0]。 应该是:i >= 0。 2. If possible, identify a test case that does not execute the fault. (Reachability) x
阅读全文
posted @ 2016-03-07 00:12
赵俊庭
阅读(209)
推荐(0)
2016年3月6日
摘要:
作业题目: Briefly describe an error from your past projects that you have recently completed or an error from other projects which impress you most. State
阅读全文
posted @ 2016-03-06 23:43
赵俊庭
阅读(198)
推荐(0)