摘要: 题目要求: Write a program that outputs the string representation of numbers from 1 to n. But for multiples of three it should output “Fizz” instead of the 阅读全文
posted @ 2016-11-01 17:33 qicaide 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 反思一下自己,将近一个月没有继续了,要坚持啊! 阅读全文
posted @ 2016-11-01 09:18 qicaide 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 使用attach(file)时,一定要配合使用detach(file),否则再此运行程序时极易出现问题,The following objects are masked ... 此外工作空间中不能有与file里的变量同名的全局变量存在,如果有会显示masked attach()与with的使用方法与 阅读全文
posted @ 2016-10-09 12:26 qicaide 阅读(4535) 评论(0) 推荐(0) 编辑
摘要: 方法一: 按照R导论中的方法,使用RODBC包, 结果: 未能成功,原因是 odbcConnectExcel is only usable with 32-bit Windows 即只能在32位的电脑中使用,64位的则不可以。 方法二: 使用xlsx包,具体下载此包方法见 http://bbs.pi 阅读全文
posted @ 2016-10-08 19:50 qicaide 阅读(5018) 评论(0) 推荐(0) 编辑
摘要: question: Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more 阅读全文
posted @ 2016-09-29 16:00 qicaide 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 基本概念 数据矩阵 表示 n个对象 × p个属性 相异性矩阵 表示n个对象两两之间的临近度 n×n的矩阵 d(i,j)表示对象i与对象j之间的相异性 1 标称属性的临近性度量 计算公式: m: 匹配的数目(即i和j取值相同状态的属性数) p: 刻画对象的属性总数 令p=1 (主要目的是使相异矩阵的值 阅读全文
posted @ 2016-09-27 18:18 qicaide 阅读(4297) 评论(0) 推荐(1) 编辑
摘要: question: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the proces 阅读全文
posted @ 2016-09-26 21:16 qicaide 阅读(115) 评论(0) 推荐(0) 编辑
摘要: question: Given an array of integers, every element appears twice except for one. Find that single one. my first answer(which is wrong, due to Time Li 阅读全文
posted @ 2016-09-26 20:24 qicaide 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 数据集的一般特性: 维度 (具有的属性数目) 稀疏性(在非对称特征数据集,一个对象大部分属性上的值为0) 分辨率(分辨率太高,模式可能看不清楚,分辨率太低可能模式不出现) 数据集类型 1 记录数据 (记录之间或数据字段之间没有明显的联系,并且每个记录(对象)有相同的属性集) 事务数据或购物篮数据 数 阅读全文
posted @ 2016-09-26 19:44 qicaide 阅读(1778) 评论(0) 推荐(0) 编辑
摘要: question: Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. my wrong answer 错误点: 显示memory error 应该是运行较大数 阅读全文
posted @ 2016-09-26 19:15 qicaide 阅读(135) 评论(0) 推荐(0) 编辑