2017年10月24日
摘要: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2017-10-24 00:23 pzyskytree 阅读(86) 评论(0) 推荐(0) 编辑
  2017年10月23日
摘要: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data. 阅读全文
posted @ 2017-10-23 11:58 pzyskytree 阅读(104) 评论(0) 推荐(0) 编辑
  2016年3月30日
摘要: 1:The control flow of the program; 2: When we set the MAXPRIMES less than 5 but greater than 2, than the use case 5 would find the fault that the arra 阅读全文
posted @ 2016-03-30 21:04 pzyskytree 阅读(152) 评论(0) 推荐(0) 编辑
  2016年3月18日
摘要: 1:In the first step, I added the junit and hamcrest jar documents to my new project through clicking the build path selection and adding external jars 阅读全文
posted @ 2016-03-18 15:20 pzyskytree 阅读(103) 评论(0) 推荐(0) 编辑
  2016年3月6日
摘要: 1: In the first program, the fault is that it misses the first element of the array. Since when i equals to 0, the for loop stopped, but the program s 阅读全文
posted @ 2016-03-06 20:25 pzyskytree 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Last semester I was asked to design a website required by my web teacher. Since I had no experience and basic knowledge in web designing, I had no cho 阅读全文
posted @ 2016-03-06 17:29 pzyskytree 阅读(174) 评论(0) 推荐(0) 编辑
  2015年4月25日
摘要: LINQ类似于SQL查询语言,通过设定一系列的查询条件对表中数据进行查找和筛选,他分为以下几种语句:1.筛选:Where :返回满足条件的元素子集,take:返回前count个元素舍弃其他元素,skip:返回后count个元素,舍弃其他元素,Distinct: 返回不含重复元素的集合。2.投影:se... 阅读全文
posted @ 2015-04-25 20:14 pzyskytree 阅读(149) 评论(0) 推荐(0) 编辑
  2015年4月19日
摘要: 我在实验中在函数里抛出了异常,然后在主函数里对异常进行了catch,其中从上到下对异常的类型进行判断然后基类exception的catch可以catch子类的exception,而finally无论是否有exception都会执行。 delegate是类似与函数指针的一种方法,他有匿名和非匿名两种方... 阅读全文
posted @ 2015-04-19 20:20 pzyskytree 阅读(125) 评论(1) 推荐(0) 编辑
  2015年4月5日
摘要: 今天我按照视频里的要求做了一个tip计算器, 先用stackpanel做好UI界面,其中有bill,tip,和total三部分。同时根据服务的效果分为0.1,0.18,0.25三个等级。后来有新建一个类tip,其中有billamount,tipamount,和totalamount三个propert... 阅读全文
posted @ 2015-04-05 19:31 pzyskytree 阅读(195) 评论(0) 推荐(0) 编辑
  2015年3月30日
摘要: 我通过视频学习学会了在Grid里面使用一些control来对可视化界面进行布局,其中有TextBox用于对话或输入文本其中InputScope可以设置键盘形式及输入信息种类;ComboBox则是选择性Box类似下拉菜单,可以在内部编辑ComboBoxItem设置选项;CheckBox则是选中性B... 阅读全文
posted @ 2015-03-30 20:13 pzyskytree 阅读(175) 评论(0) 推荐(0) 编辑