Respected Sir,
I have a doubt in bool compare function.
Doubt in bool compare
@gyanendarsingh891_11faad0f77ec7480
In this particular ques, Prateek bhaiya has used compare function for sorting… so basically we have to sort the strings in increasing order of length, and if length of 2 strings is same, then we have to print them in lexicographical order…
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.