What is error in this

hey @punitsehrawat423 you are getting segmentation fault as you are accessing that memory which is out of bound. just do (Return string1+string2>string2+string1) in your comparator function.
Try to do dry run of
2
49 492, and tell me the output for the same.

1 Like

thanks sir it got resolved

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.