Unfortunately it didn't. At least not for me. Why would "you can count it as one work capacity" mean that a job can be shared between two (or more) workers?
It took me a lot of time (really a lot) to get what you meant.
I have passed 65 out of 66 in Python. The only test not working is the one where "s" is empty. What should my code return? (It returns False and is not accepted.)
...and one more thing: the issue with the cropping disappears once you do not modify the original array.
(I had the same problem, and found this answer much more down here, I thought I repeat it so that others do not have to dig so deep.)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Unfortunately it didn't. At least not for me. Why would "you can count it as one work capacity" mean that a job can be shared between two (or more) workers?
It took me a lot of time (really a lot) to get what you meant.
This comment is hidden because it contains spoiler information about the solution
to be most precise: total number of mating BEARS. (not pairs.)
This comment is hidden because it contains spoiler information about the solution
as i understood, s can be empy if both part1 and part2 are empty
I have same problem, even i write something like this and it does not work, if return true or false
I have passed 65 out of 66 in Python. The only test not working is the one where "s" is empty. What should my code return? (It returns False and is not accepted.)
...and one more thing: the issue with the cropping disappears once you do not modify the original array.
(I had the same problem, and found this answer much more down here, I thought I repeat it so that others do not have to dig so deep.)
I think it would be nice if the problem description mentioned that the program shouldn't modify the original array...