Algorithm in c++

how to calculate length of all string and in sort function which two element is passed in comparator function please take a example of 5 integer and please show all steps is work …

Hello @vishal_sangal_123 in the inbuilt sort function you pass the two parameters:
first the starting iterator and the second is the ending iterator.
you have to sort all the elements in between of this.

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.