From 88962d09ac09dd7193a777140ae4225d3a85a906 Mon Sep 17 00:00:00 2001 From: Tanmay-312 Date: Mon, 15 Apr 2024 08:52:13 +0530 Subject: [PATCH] Added files for 15 April --- GeeksForGeeks/April/15-4-24/GFG.java | 70 +++++++++++++++++++++++++++ GeeksForGeeks/April/15-4-24/README.md | 2 + LeetCode/April/15-4-24/README.md | 2 + LeetCode/April/15-4-24/Solution.java | 40 +++++++++++++++ 4 files changed, 114 insertions(+) create mode 100644 GeeksForGeeks/April/15-4-24/GFG.java create mode 100644 GeeksForGeeks/April/15-4-24/README.md create mode 100644 LeetCode/April/15-4-24/README.md create mode 100644 LeetCode/April/15-4-24/Solution.java 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