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?
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
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
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.
This comment is hidden because it contains spoiler information about the solution
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