How to remove error in th ecode i m getting wc
Hi Kailash please check this code for reference https://ide.codingblocks.com/s/181384
your code is not taking care of the strings whose substrings are present. they will be sorted lengthwise if you are using the tradtional sorting method so you can use the builtin sort function and then write your own comparison method.
Please mark your doubt as resolved if you are satisfied.