Professional Documents
Culture Documents
DSA Tutorial-3
DSA Tutorial-3
Tutorial 3
Basic
Topic: Array - 1
[ write a java program to perform following Questions]
[ Generate Random Array for Following Problems Using java.util.Random]
(generating Array is preferable not necessary)
4) Find an element with highest frequency in an array, also print its frequency.
6) Check weather the given Array is Sorted or nor ( both asc and desc )
8) Check weather two arrays are Identical or not. ( Same elements but it can in
different order)
10) Find a pair of two elements in an array, such that their sum is prime number
and has maximum sum.
Welcome to the wonderful World of Java. Decoded by Moksh Patel ...!
1|Page
Welcome to the wonderful World of Java. Decoded by Moksh Patel ...!
2|Page