摘要: from Scali's OpenBloghttps://scalibq.wordpress.com/2012/02/14/the-myth-of-cmt-cluster-based-multithreading/第一次听到“CMT”这个术语的时候,我有些纳闷,难道我一直忽略了某种多线程的技术吗?但... 阅读全文
posted @ 2015-08-18 14:00 intervention 阅读(1184) 评论(2) 推荐(0) 编辑
摘要: https://leetcode.com/problems/best-time-to-buy-and-sell-stock/给出股票每一天的价格,求解只做一次交易的最佳收益方案。思路是首先建立一个存储股票每天差价的数组 diff[],其中 diff[i] = prices[i] - prices[i... 阅读全文
posted @ 2015-07-16 10:03 intervention 阅读(281) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/add-two-numbers/You are given two linked lists representing two non-negative numbers. The digits are stored in reverse o... 阅读全文
posted @ 2015-06-29 21:38 intervention 阅读(214) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function twoS... 阅读全文
posted @ 2015-06-28 16:47 intervention 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 最近在一个 vps 上做 linux 开发,为了方便开发资料的同步,使用了 dropbox,其官网有命令行版本的安装方法,但是下载它的安装包需要使用 https 连接,在我这边的 debian 系统上会报一个错误:ERROR: The certificate of `www.dropbox.com'... 阅读全文
posted @ 2015-01-08 18:05 intervention 阅读(2101) 评论(0) 推荐(0) 编辑
摘要: 1、压缩磁盘首先必须在客户机系统里用 '0' 来填充已经被删除的空间。C:\Program Files\VMware\VMware Tools>VMwareToolboxCmd.exe disk shrink C:\这个命令会隐式调用 disk wipe 功能。完成之后虚拟机会被暂时冻结,VMwar... 阅读全文
posted @ 2015-01-05 23:20 intervention 阅读(533) 评论(0) 推荐(0) 编辑
摘要: 安装中文字体sudo apt-get install ttf-wqy-zenhei ttf-wqy-microhei“network connection”里“add vpn”是灰色sudo apt-get install network-connection-pptp-gnome无法保存 vpn ... 阅读全文
posted @ 2014-12-23 18:08 intervention 阅读(577) 评论(0) 推荐(0) 编辑
摘要: Windows 平台下,这两个软件安装没有什么难度,点击下一步即可。VS Express 版本不支持安装扩展,所以不能在安装之后直接新建CUDA的工程,只能手动处理,这个稍微麻烦些:1. 在 VS 2013 Express 里,点击文件->新建项目,选择模板\Visual C++\空项目;2. 右击... 阅读全文
posted @ 2014-10-28 13:14 intervention 阅读(2708) 评论(6) 推荐(1) 编辑
摘要: The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. http://en.wikipe... 阅读全文
posted @ 2014-10-27 14:21 intervention 阅读(2903) 评论(0) 推荐(0) 编辑
摘要: 昨天碰巧看到一道微软校招的编程题,题目大意如下:如果一个字符串包括三组或者更多组的连续升序字母,每组长度相等,那么我们就称这个字符串是Beautiful String如下是一些Beautiful String的例子:abc、cde、aabbcc、aaabbbccc这些不是Beautiful Stri... 阅读全文
posted @ 2014-10-20 13:31 intervention 阅读(797) 评论(1) 推荐(0) 编辑