Introduction - If you have any usage issues, please Google them yourself
The algorithm provides a fast method to find the maximum and minimum values in the array, improving its time complexity and space complexity of the algorithm from the point of view, has a relatively better performance.