I run this code on the sample test case and it is executing perfectly. but when I am submitting this code it is not able to pass one test case. can you help me in finding a mistake in the code?
URL: https://online.codingblocks.com/player/22511/content/4990/4738
String Sort in java
i am not able to access your link please provide coding block ide link.
As the string are of 10^5 length so normal string matching algo won;t work so you need to implement KMP while comparing whether a string is a part of another or not!
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.