I had the same problem:
Try to refactor your code and remove any mutating method that you called on the object referenced by the input string.
Use non-mutating methods instead and try again.
Hope this works!
I also solved it right now without problems. Just counting down and check if digits are the same works for test cases but not for attempt cases, if that's your algo
This comment is hidden because it contains spoiler information about the solution
I had the same problem:
Try to refactor your code and remove any mutating method that you called on the object referenced by the input string.
Use non-mutating methods instead and try again.
Hope this works!
Yeah, but the author should clarify this in the prompt..
I also solved it right now without problems. Just counting down and check if digits are the same works for test cases but not for attempt cases, if that's your algo
No, theren't any errors in the test.
What is the time complexity of your code?
Read this troubleshooting guide.
Spaces never count, you have to start counting again for each word. And it's been asked and answered before, check the posts below.