Hchan

Hchan

V2EX 第 108545 号会员,加入于 2015-04-01 14:50:23 +08:00
Hchan 最近回复了
2015-06-26 17:12:38 +08:00
回复了 Tiande 创建的主题 Python 这段 杨辉三角 的算法,真漂亮...
lazy val tri: Stream[List[Int]] = List(1) #:: tri map {s => (0 :: (s :+ 0)).sliding(2).toList.map(_.sum)}
@lds56
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   4414 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 05:16 · PVG 13:16 · LAX 22:16 · JFK 01:16
Developed with CodeLauncher
♥ Do have faith in what you're doing.