1. Write an algorithm to check whether there are any duplicate elements in an array of n numbers.
2. Write an algorithm for finding the element which appears the maximum number of times in an array of n numbers.
You are required to make at least two comments on the responses posted by you classmates with a minimum of 50 words. Make sure you design your response with your own words. Your responses to your classmates must be of substance; not just “I agree” or “Good Post.” The purpose of the responses is to convert the discussion forum into a quality academic environment through which you improve your knowledge and understanding. Read and review all assigned course materials and chapters before you start working on your assignments.