We will try to apply the Sorting and Searching Algorithms that we know to solve a problem given in this directory. You are free to use any of such algorithms you like to make your code as efficient as possible.
Sorting is a fundamental algorithm design problem that is used in many efficient algorithms for processing data. The problem is simple - you have an array of
There are many different algorithms used for sorting. There are
Searching an element is also another skill that is used while solving many problems. Though a simple Linear search takes linear time, there are other search methods that are more effective for solving problems. Use them here to solve the problem.