From 30b18eabd200fe90e8d95fd8ed4b4e934966dcee Mon Sep 17 00:00:00 2001 From: Prashant Madhukar Date: Mon, 13 Sep 2021 19:07:10 +0530 Subject: [PATCH] Update Time and Space Complexity Analysis:Print Array intersection current code is giving error, modified code is working perfectly --- ...Space Complexity Analysis:Print Array intersection | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Time and Space Complexity Analysis:Print Array intersection b/Time and Space Complexity Analysis:Print Array intersection index d09d416..d507c48 100644 --- a/Time and Space Complexity Analysis:Print Array intersection +++ b/Time and Space Complexity Analysis:Print Array intersection @@ -1,6 +1,7 @@ import java.util.*; -public class Intersection{ - public static void intersection(int[] arr1, int[] arr2){ +public class Solution { + + public static void intersection(int[] arr1, int[] arr2){ Arrays.sort(arr1); Arrays.sort(arr2); merge(arr1,arr2); @@ -11,7 +12,7 @@ public class Intersection{ while(i