Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Yes, you're right, then i rewrite my solution
OP solved it, closing!
No, it is not "in an absolutely random time". It is always. For
"abcb"
, your solution always return"cb"
instead of"bc"
. Your solution has a bug, and handles some inputs incorrectly. You can also check"abc abc"
.You need to check exactly, because for
s="abcb"
, your solution does not return"bc"
(as it should), but something else.What will your solution return for string
s="abcb"
?It is very difficult to tell why your code is wrong without seeing your code, or even without knowing what language you are trying to solve.