diff --git a/GeeksForGeeks/April/15-4-24/GFG.java b/GeeksForGeeks/April/15-4-24/GFG.java new file mode 100644 index 0000000..6bbdcf1 --- /dev/null +++ b/GeeksForGeeks/April/15-4-24/GFG.java @@ -0,0 +1,70 @@ +//{ Driver Code Starts +//Initial Template for Java + +import java.io.*; +import java.util.*; + + +class Array { + + // Driver code + public static void main (String[] args) throws IOException{ + // Taking input using buffered reader + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + + int testcases = Integer.parseInt(br.readLine()); + // looping through all testcases + while(testcases-- > 0){ + int n=Integer.parseInt(br.readLine()); + String line1 = br.readLine(); + String line2 = br.readLine(); + String[] a1 = line1.trim().split("\\s+"); + String[] b1 = line2.trim().split("\\s+"); + int a[]=new int[n]; + int b[]=new int[n]; + + for(int i=0;i