03 2016 档案

蒙特卡洛方法
摘要:蒙特卡罗方法是一种计算方法。原理是通过大量随机样本,去了解一个系统,进而得到所要计算的值。 它非常强大和灵活,又相当简单易懂,很容易实现。对于许多问题来说,它往往是最简单的计算方法,有时甚至是唯一可行的方法。 它诞生于上个世纪40年代美国的"曼哈顿计划",名字来源于赌城蒙特卡罗,象征概率。 第一个例 阅读全文

posted @ 2016-03-22 21:25 bug睡的略爽 阅读(506) 评论(0) 推荐(0)

Sort Colors
摘要:Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, 阅读全文

posted @ 2016-03-15 20:05 bug睡的略爽 阅读(129) 评论(0) 推荐(0)

Climbing Stairs
摘要:70. Climbing Stairs My Submissions Question Total Accepted: 97743 Total Submissions: 269280 Difficulty: Easy You are climbing a stair case. It takes n 阅读全文

posted @ 2016-03-09 23:13 bug睡的略爽 阅读(162) 评论(0) 推荐(0)

导航