摘要: LeetCode--盛最多水的容器 先看看题目 给你 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点(i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0) 。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。 阅读全文
posted @ 2021-09-20 17:28 ChrisNg 阅读(46) 评论(0) 推荐(0)
摘要: 欧拉计划005 Smallest multiple \(2520\) is the smallest number that can be divided by each of the numbers from \(1\) to \(10\) without any remainder. What 阅读全文
posted @ 2021-09-20 17:07 ChrisNg 阅读(106) 评论(0) 推荐(0)
摘要: 欧拉计划004--最大回文乘积 Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two \(2\)-di 阅读全文
posted @ 2021-09-20 16:31 ChrisNg 阅读(106) 评论(0) 推荐(0)