摘要: Excel can sort records according to any column. Now you are supposed to imitate this function. Input Each input file contains one test case. For each 阅读全文
posted @ 2018-08-08 13:38 lypbendlf 阅读(155) 评论(0) 推荐(0) 编辑
摘要: People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher 阅读全文
posted @ 2018-08-08 12:24 lypbendlf 阅读(127) 评论(0) 推荐(0) 编辑
摘要: A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open 阅读全文
posted @ 2018-08-08 11:49 lypbendlf 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run sim 阅读全文
posted @ 2018-08-07 19:10 lypbendlf 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135 阅读全文
posted @ 2018-08-07 17:22 lypbendlf 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 1.如何改进性能不好的学习算法 图1.运用到测试集上效果不佳 当进行一个正则化线性回归时,最小化了代价函数得到参数,但是运用到新的测试集上,发现效果不好,那么如何改进? 1).增加训练集。但是实际上花费的时间更多,效果并不好。 2).选取更小的特征集合。 3).获取更多特征。 4).加入多项式特征项 阅读全文
posted @ 2018-08-07 15:49 lypbendlf 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1.Linear Regression with Multiple Variables 转自:https://blog.csdn.net/mupengfei6688/article/details/53098735 1.Suppose m=4 students have taken some cla 阅读全文
posted @ 2018-08-07 08:54 lypbendlf 阅读(367) 评论(0) 推荐(0) 编辑
摘要: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years 阅读全文
posted @ 2018-08-06 17:53 lypbendlf 阅读(266) 评论(0) 推荐(0) 编辑
摘要: A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the 阅读全文
posted @ 2018-08-06 16:34 lypbendlf 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou 阅读全文
posted @ 2018-08-06 14:57 lypbendlf 阅读(190) 评论(0) 推荐(0) 编辑