We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Collections
- Word Order
- Discussions
Word Order
Word Order
Sort by
recency
|
1603 Discussions
|
Please Login in order to post a comment
Counter from collections module provides for us O(n) here:
I noticed that noone (including the test cases themselves) do any kind of validation. Not even against the constraints clearly noted in the problem itself?
Is there a reason for this?
I've tried submitting the below code, but it fails a few of the test cases. Unfortunately, I can't check why as the custom test input does not accept the input from the test cases due to size constraint. This tells me that for some of the test cases, the constraints are not met, and the test cases should have failed?