Ad
  • Default User Avatar

    This is actually not a very good solution(
    For the problem of finding the minimum element in this solution, you additionally need to sort the array
    In case the length of the array -> to infinity, sorting it will take several orders of magnitude longer than just finding the minimum