摘要: Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 1 阅读全文
posted @ 2018-08-08 22:25 lypbendlf 阅读(312) 评论(0) 推荐(0)
摘要: 1.确定执行的优先级 图1.邮件垃圾分类举例 选择100个单词作为指示是否是垃圾邮件的指标,将这些单词作为特征向量,只用0/1表示,出现多次也只用1表示,特征变量用来表示邮件。 通常情况下,会选择训练集中出现频率最多的n(在10000到50000)之间的几个单词。 图2.改进模型的建议 1.收集更多 阅读全文
posted @ 2018-08-08 19:35 lypbendlf 阅读(189) 评论(0) 推荐(0)
摘要: 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 阅读(175) 评论(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 阅读(148) 评论(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 阅读(186) 评论(0) 推荐(0)