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.
I didn't check test cases but tried my incorrect and Chrono79's suggested solution. Both give fail now but with simple 'if' I still pass all test cases for Attempt so random tests also need something similar to 'AabcBBB' case but with random
Removed 'spoiler' flag. But there is no code, if that's your expectation.
@yrprth, @Chrono79 : The random tests now generate inputs that expect
true
for approx 50% of the random tests.Thank you for your patience.
it is showing list out of index error
This comment is hidden because it contains spoiler information about the solution
This comment is hidden
Python tests should be reworked because this solution pass them.
Similarly Javascript tests are also weak, so this solution also pass.
Basically, you should make sure random tests also generate inputs expecting true (ideally 50% chances).
I see the follwing Test Case for Attempt
but for Sample Tests we have also Test Case
my solution(incorrect solution) fails this Sample Test and I expect that the solution should fail also Attempt but it passed it. My point is that wrong solution can pass Attempt Tests.
There is only one test case with the same input of
AabcBBB
between the "Example Tests" and theother tests that are run when you click the "Attempt" button.
Plese review your solution again.
My solution fails the base test (and this is correct test fail) but succesfully passed tests on submit. Failed base test is from description 'is_in_middle("AabcBBB") -> False'. I think submit tests should be updated with similar to 'AabcBBB' case. Python.
It is showing one test case failed for middle one
This comment is hidden because it contains spoiler information about the solution
I ran the test cases using your code, and did not have an issue with the random tests whatsoever.
They all passed.
By the way, I am using
Node v12.x
I hope that helps.
Inside your function, display (
print
in Python,console.log
in JavaScript) to see what the value of the input is.That should give you some idea of which test cases are failing.
Some test cases still showing failed . I don't understand which one?
Loading more items...