算法
文章平均质量分 66
f1009976636
这个作者很懒,什么都没留下…
展开
-
Leetcode,70.Climbing Stairs
问题描述:You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?Note: Given n will be a positiv...原创 2018-02-01 11:55:08 · 198 阅读 · 0 评论 -
牛顿迭代法学习
牛顿迭代法(Newton's method)又称为牛顿-拉夫逊(拉弗森)方法(Newton-Raphson method),它是牛顿在17世纪提出的一种在实数域和复数域上近似求解方程的方法。接触到这个算法是因为昨天在LeetCode上遇见一道题:实现sqrt(),即开平方根。 牛顿迭代法的数学原理请看知乎如何通俗易懂地讲解牛顿迭代法求开方? - 马同学的回答 - 知乎先上java代原创 2018-01-30 13:23:54 · 788 阅读 · 0 评论