Help With My Essay:Write a Java program that implements the algorithm that you have come out with
In a recent orientation camp, there are m number of male students and f number of female students. Like all previous orientation camps, the number of male students, of different ages, is higher than the number of female students; that is m > f. The organizer of the camp would like to find out the ages among the students attending the camp that are common between both the male and female students.
Device an effective algorithm that runs on 0 (m log f) complexity, to achieve the needs of the organizer, that is, describe (in pseudocode) an algorithm that runs on 0 (m log f) to find out the ages that are common between both the male and female students. You may use the following 2 lists as reference when you design your algorithm.