Answers for "comparator function sort in c++"

C++
0

comparator in sort c++

bool com_fun(int a,int b){
	if(a<b) return true;
	else return false;
}

sort(arr,arr+n.com_fun);
Posted by: Guest on October-25-2021

Code answers related to "comparator function sort in c++"

Browse Popular Code Answers by Language