diff --git a/18_Hashing/HashSet/prb1.class b/18_Hashing/HashSet/prb1.class new file mode 100644 index 0000000..035064f Binary files /dev/null and b/18_Hashing/HashSet/prb1.class differ diff --git a/18_Hashing/HashSet/prb1.java b/18_Hashing/HashSet/prb1.java new file mode 100644 index 0000000..bea8ba1 --- /dev/null +++ b/18_Hashing/HashSet/prb1.java @@ -0,0 +1,14 @@ +import java.util.*; + +public class prb1 { + public static void main(String[] args) { + int arr[] = {4,3,2,5,6,7,3,4,2,1}; + HashSet set = new HashSet<>(); + + for(int i = 0;i