Create a class called HashQuiz and implement the following methods. You must use only one set or one map to solve these methods, not both. You can’t use any auxiliary memory.Include a main method and test all your methods with using the examples mentioned.a. Create a method called myDuplicate() that takes an integer array “ourArr” that has duplicates such that all duplicates appear an odd number of times, except one which appears an odd number of times. You must find that odd element. For example in arr = {1, 5, 1, 8, 5, 2, 1, 2, 3, 2, 8, 5}, ‘8’s is even duplicated element.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here