摘要: 链接:https://leetcode-cn.com/problems/integer-to-roman/ 代码 class Solution { public String intToRoman(int num) { int values[] = {1000, 900, 500, 400, 100 阅读全文
posted @ 2020-06-12 17:04 景云ⁿ 阅读(94) 评论(0) 推荐(0)
摘要: 链接:https://leetcode-cn.com/problems/container-with-most-water/ 思路 双指针法 代码 class Solution { public int maxArea(int[] height) { int ans = 0; for (int i 阅读全文
posted @ 2020-06-12 16:49 景云ⁿ 阅读(78) 评论(0) 推荐(0)