I optimised from passing 30 test cases to 200 test cases in python and am now running out of ideas for optimization. Is it supposed to be more optimised or is the random test case is in infinite loop causing timeout?
Your solution has a bug. It works incorrectly when it is called more than once. Test it locally bu running it two times in a row, once with input "abcdefghijklmnopqrstuvw", and then with input "xyz".
It is a bug in your solution, and not a kata issue.
python tests are incorrect. when i copy the test input to my local machine the output gives expected result but copying the same code here shows wrong output. eg: "I+UG +<Twqh\tumNVfY/RbCIO[FsLVFZpx=jD" shoutld return False and it does on local machine but on codewars it shows True should equal to False.
Testing .page_count() method
Test Passed
page_item_count is returning incorrect value.: 4 should equal 10
Test Passed
page_item_count is returning incorrect value: 4 should equal -1
yes not able to pass the testcases in java
reported here as an issue
Java:
List
import)I optimised from passing 30 test cases to 200 test cases in python and am now running out of ideas for optimization. Is it supposed to be more optimised or is the random test case is in infinite loop causing timeout?
thanks! fixed it
Your solution has a bug. It works incorrectly when it is called more than once. Test it locally bu running it two times in a row, once with input "abcdefghijklmnopqrstuvw", and then with input "xyz".
It is a bug in your solution, and not a kata issue.
python tests are incorrect. when i copy the test input to my local machine the output gives expected result but copying the same code here shows wrong output. eg: "I+UG +<Twqh\tumNVfY/RbCIO[FsLVFZpx=jD" shoutld return False and it does on local machine but on codewars it shows True should equal to False.
Sorry, there are no errors in the tests. (C kata passed by 883 people).
This comment is hidden because it contains spoiler information about the solution
Unfortunately, I did not understand at all what the task was about. Separately, everything is clear, but not all together.
And what is the issue here? Your solution returns wrong results.
Testing .page_count() method
Test Passed
page_item_count is returning incorrect value.: 4 should equal 10
Test Passed
page_item_count is returning incorrect value: 4 should equal -1