From 1472c7bab93896070d324b3290995358f5ab74cc Mon Sep 17 00:00:00 2001 From: Gopa Vasanth Date: Mon, 16 Jul 2018 23:36:46 +0530 Subject: [PATCH] AdjacentRep.java This may be the simple solution I guess, You went too complex. --- codeforces/AdjacentRep.java | 41 ++++++------------------------------- 1 file changed, 6 insertions(+), 35 deletions(-) diff --git a/codeforces/AdjacentRep.java b/codeforces/AdjacentRep.java index 47f8ec8..ce4a826 100644 --- a/codeforces/AdjacentRep.java +++ b/codeforces/AdjacentRep.java @@ -11,42 +11,13 @@ public static void main(String[] args) { a[i] = sc.nextInt(); } - int g = 0; for(int i = 0 ; i