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
- Java
- Data Structures
- Java BitSet
- Discussions
Java BitSet
Java BitSet
Sort by
recency
|
173 Discussions
|
Please Login in order to post a comment
In Test Case 8 line: 2986 there is a command FLIP 2 1000
But I see that case starts with 1000 10000 which tells bit array length should be 1000. So by using zero based indexing how can you expect to pass this test case which was prepared by wrong data??
Test case 6 has invalid input in "FLIP 2 523" and invalid test expectation.
Since n=523, allowed range of index to flip is from 0 to 522. The index of 523 to flip is invalid.