how does a comparator work please explain in a detail …really comfused!!!1
like if we have this
bool compare (int a, int b){
return a<b;
}
and if we have this whats difference
bool compare (int a, int b){
return a>b;
}
and what will this return inn which order and why
bool compare (string s1, string s2){
return s1,s2;
}