JAVA_Construct the Rectangle_LeetCode 492 풀이 class Solution { public int[] constructRectangle(int area) { for(int j = (int)Math.sqrt(area);j >= 1;j--){ if(area % j == 0) return new int[]{area / j, j}; } return null; } } * 출처 Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com...
JAVA_Construct the Rectangle_LeetCode 492에 대한 요약내용입니다.
자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.
#ConstructtheRectangle_LeetCode492
#JAVA
#JAVA_ConstructtheRectangle
#JAVA_ConstructtheRectangle_LeetCode492
#JAVA_LeetCode492
원문링크 : JAVA_Construct the Rectangle_LeetCode 492