Lay1998

导航

2020年9月19日 #

如何求平方根 - Algorithm 第四版 - 读书笔记

摘要: 如何求平方根 假如以我们人脑的思考方式去思考求8的开方,由于我们知道2的平方为4,3的平方为9,所以我们可以用2.X去猜测,由于2.9的平方大于8,2.8的平方小于8,所以十分位确定了,然后我们再去按照同样的方式去思考下一位。这样一点点的去求得接近8的开方值的数据,直到我们达到需要的精度,比如保留三 阅读全文

posted @ 2020-09-19 16:51 Lay1998 阅读(265) 评论(0) 推荐(0) 编辑

最大连续子数组 - Maximum Subarray - Leetcode -easy

摘要: 题目 Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. I/O 栗子 Inp 阅读全文

posted @ 2020-09-19 10:27 Lay1998 阅读(152) 评论(0) 推荐(0) 编辑