We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main.java.com.poogle.PG.Q86491; public class Solution { public static void main(String[] args) { System.out.println(solution(new int[][]{{60, 50}, {30, 70}, {60, 30}, {80, 40}})); System.out.println(solution(new int[][]{{10, 7}, {12, 3}, {8, 15}, {14, 7}, {5, 15}})); } private static int solution(int[][] sizes) { int maxW = 0; int maxV = 0; for (int[] size : sizes) { int w = Math.max(size[0], size[1]); int v = Math.min(size[0], size[1]); maxW = Math.max(w, maxW); maxV = Math.max(v, maxV); } return maxW * maxV; } }
The text was updated successfully, but these errors were encountered:
PG: 81301, 86051, 86491 풀이
4d70411
Closed #178, #179, #180
suhyunsim
No branches or pull requests
문제
핵심 아이디어
어려운 점, 실수
풀이
The text was updated successfully, but these errors were encountered: