Answers for "how to check array is sorted or not in c++"

C++
2

how to check array is sorted or not in c++

bool check_sorted(int a[],int n)
{
 	return is_sorted(a,a+n); //stl function 
}
Posted by: Guest on February-19-2021

Code answers related to "how to check array is sorted or not in c++"

Browse Popular Code Answers by Language