2021年10月23日

LeetCode_492 构造矩形(Java版)

摘要: 解题思路 直接从根号处遍历即可 代码 class Solution { public int[] constructRectangle(int area) { //定义一个数组,长度只要2就可以 int[] arr = new int[2]; //初始化,默认肯定是1*area == area ar 阅读全文

posted @ 2021-10-23 21:27 Tianhao丶 阅读(56) 评论(0) 推荐(0)

导航