摘要:
题目要求: 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 阅读全文
摘要:
使用attach(file)时,一定要配合使用detach(file),否则再此运行程序时极易出现问题,The following objects are masked ... 此外工作空间中不能有与file里的变量同名的全局变量存在,如果有会显示masked attach()与with的使用方法与 阅读全文
摘要:
方法一: 按照R导论中的方法,使用RODBC包, 结果: 未能成功,原因是 odbcConnectExcel is only usable with 32-bit Windows 即只能在32位的电脑中使用,64位的则不可以。 方法二: 使用xlsx包,具体下载此包方法见 http://bbs.pi 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 应该是运行较大数 阅读全文