摘要:
http://www.infoq.com/cn/news/2012/08/32-most-important-algorithms?utm_source=infoq&utm_medium=popular_links_homepagehttp://www.risc.jku.at/people/ckoutsch/stuff/e_algorithms.html奥地利符号计算研究所(Research Institute for Symbolic Computation,简称RISC)的Christoph Koutschan博士在自己的页面上发布了一篇文章,提到他做了一个调查,参与者大多数是计算 阅读全文
摘要:
以下是2种表达方式一样。if expression codeendif expression then #推荐这种形式 codeendexpression的值不是false或nil,则code块将被执行。需要注意:1)围绕expressions的圆括号是可选的(而且通常都不用),ruby使用换行符、分号或者关键字then对条件表达式和后续的内容进行分隔 2) 必须以end 作为结束。例子if data #if array exist data << x #append x to dataelse data = [x] #create ... 阅读全文