From 259fe58ece59b304159686943c709294d9858020 Mon Sep 17 00:00:00 2001 From: sulaemanahmed <132727787+sulaemanahmed@users.noreply.github.com> Date: Tue, 31 Oct 2023 23:25:25 -0500 Subject: [PATCH] Update MissingNumberInArray.java Add Java code for finding a missing number in an array --- Add Code Here/Java/MissingNumberInArray.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Add Code Here/Java/MissingNumberInArray.java b/Add Code Here/Java/MissingNumberInArray.java index 67e749f8416..c7ad22eb176 100644 --- a/Add Code Here/Java/MissingNumberInArray.java +++ b/Add Code Here/Java/MissingNumberInArray.java @@ -1,11 +1,8 @@ import java.io.*; -//import java.util.*; public class MissingNumberInArray { public static void main(String[] args) throws IOException { - BufferedReader br = - new BufferedReader(new InputStreamReader(System.in)); - + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int t = Integer.parseInt(br.readLine().trim()); while (t-- > 0) { int n = Integer.parseInt(br.readLine().trim());