[Lesson 6] Sorting - MaxProductOfThree
https://app.codility.com/programmers/lessons/6-sorting/max_product_of_three/ MaxProductOfThree coding task - Learn to Code - CodilityMaximize A[P] * A[Q] * A[R] for any triplet (P, Q, R).app.codility.comimport java.util.Arrays;class Solution { public int solution(int[] A) { int negativeNumCnt = 0; for (int num : A) { if (num = 2) { result = Math.max(result,..
Codility Lessons 풀이
2025. 1. 4. 18:00