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.
Fixed
Not an issue.
Yeah, I was reading it wrong. My mistake.
There are plenty Python solutions that worked fine with the example. I think your solution may be invalid. Can you post it here? (Do not forget to mark it as spoiler).
It means that your code is returning
None
instead of the correct solution: try to work on that to fix it!I was able to solve this one. I added if statements to cover all non-random test cases, then changed my code so it would return the incorrect answer it was looking for for the random cases.
Had an issue with the tests on Python. Got this error:
Testing for SJF([14, 13, 13, 8, 9], 0)
It should work for random tests too: 57 should equal 8
But if we are looking for index 0 then we are hitting 8, 9, 13, 13 and then our interest (14).
Looks like the solution to the test case was sorted then indexed instead of using original list for index.
Sorry, forgot to mention that. It was in Python that I was having the issue.
You should specify the language where you encounter that behavior.
Keep getting an error that says "None should equal 'Showing 1 to 10 of 30 Products.'" but the first test is:
Test.assert_equals(pagination_text(1,10,30),"Showing 1 to 10 of 30 Products.")
Have checked the punctuation and spacing but cannot see an issue. Working the Python version btw.
Built the solution but it tells me the first test case should be STAY even though it is the example in the description that results in a GO being tested. The test cases assert GO and STAY respectively but I get an error saying neither should be GO.