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.
isMerge("Bananas from Dahamas", "Bahas", "Bananas from am");
This example is also wrong
it also fails
Also fails with "rbX", "r", "rb".
False positive:
var sudoku = new int[][] {
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
new int[] { 5, 5, 5, 5, 5, 5, 5, 5, 5 },
};
This is looks very tidy, but it does not work. It fails something like "aabaab", "aba", "aba" which should be false. I don't think this problem can be solved with a greedy approach.