From 977483d1ce602de0c80a547c6b5fbd1e08fcc814 Mon Sep 17 00:00:00 2001 From: Varshininair <44626261+Varshininair@users.noreply.github.com> Date: Tue, 1 Oct 2019 22:25:01 +0530 Subject: [PATCH] Update codechef3.java --- codechef3.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/codechef3.java b/codechef3.java index 57cabd9..bede35a 100644 --- a/codechef3.java +++ b/codechef3.java @@ -12,22 +12,22 @@ class Codechef { public static void main (String[] args) throws java.lang.Exception { - Scanner scan = new Scanner(System.in); - int t = scan.nextInt(); + Scanner sc = new Scanner(System.in); + int t = sc.nextInt(); for(int i=0;i a = new ArrayList<>(); - for(int j=0; j0; j--) + for(int j=n-1; j>=1; j--) { if(a.get(j).startsWith("Left")) {