From 635fea19bf1f9a07980995f98da39efec74ac862 Mon Sep 17 00:00:00 2001 From: mukeunzi Date: Tue, 28 May 2019 01:59:08 +0900 Subject: [PATCH] =?UTF-8?q?[mukeunzi]=20190528=20=EB=AA=A8=EC=9D=98?= =?UTF-8?q?=EA=B3=A0=EC=82=AC=20=EC=95=8C=EA=B3=A0=EB=A6=AC=EC=A6=98=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=ED=92=80=EC=9D=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 190527/mukeunzi/MockTest.java | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 190527/mukeunzi/MockTest.java diff --git a/190527/mukeunzi/MockTest.java b/190527/mukeunzi/MockTest.java new file mode 100644 index 0000000..e49f252 --- /dev/null +++ b/190527/mukeunzi/MockTest.java @@ -0,0 +1,46 @@ +import java.util.*; + +class Solution { + public int[] solution(int[] answers) { + int way1[] = new int[]{1, 2, 3, 4, 5}; + int way2[] = new int[]{2, 1, 2, 3, 2, 4, 2, 5}; + int way3[] = new int[]{3, 3, 1, 1, 2, 2, 4, 4, 5, 5}; + int cnt[] = new int[3]; + int max = 0; + int result[]; + List answer = new ArrayList<>(); + + for(int i=0; i