From 3edca9036e20c30a59bf3fba15ea70235a8ccb11 Mon Sep 17 00:00:00 2001 From: Otmane Date: Sun, 28 Oct 2018 23:55:56 +0000 Subject: [PATCH] Beginners Problem 2.0 [SOLVED] --- SOLUTIONS/Beginner_Problem.java | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 SOLUTIONS/Beginner_Problem.java diff --git a/SOLUTIONS/Beginner_Problem.java b/SOLUTIONS/Beginner_Problem.java new file mode 100644 index 00000000..13854fba --- /dev/null +++ b/SOLUTIONS/Beginner_Problem.java @@ -0,0 +1,28 @@ +import java.util.*; + +class Main{ + + public static void main(String[] args) { + Scanner in = new Scanner(System.in); + int test; + int nbrOfElm; + int frequency; + test = in.nextInt(); + int [] output = new int[test]; + for (int i = 0;i