Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Yes, we can solve that by doubling array + liniear hashing for example. But I think it is okay for sake of possible solution.
This case fits description and will brake a lot of exisitng solutions.
Case of shuffling numbers is not covered. I think below test case will cover it.
@Test
public void test5() {
assertEquals("", 2, new BrokenSequence().findMissingNumber("5 3 4 1"));
}
Will crash on empty string