Hi everyone!
I currently pass all the tests except the ones with pattern_diff_ since I can't manage to remove the images that don't check the conditions. I know that the consecutive lines of pixels have to be different and that I should make sure every pixel with index x in a line is different from the pixels with index x-1, x and x+1 of the following line. I wrote a function that checks that condition but apparently it doesn't work. Since I work with trees I even try to build it while checking the condition to avoid making not valid images but it still returns all the possible combinations.
Can someone maybe give me some other ideas to approach the problem so that I can try to rethink it in a different way?
Thanks!!!
I currently pass all the tests except the ones with pattern_diff_ since I can't manage to remove the images that don't check the conditions. I know that the consecutive lines of pixels have to be different and that I should make sure every pixel with index x in a line is different from the pixels with index x-1, x and x+1 of the following line. I wrote a function that checks that condition but apparently it doesn't work. Since I work with trees I even try to build it while checking the condition to avoid making not valid images but it still returns all the possible combinations.
Can someone maybe give me some other ideas to approach the problem so that I can try to rethink it in a different way?
Thanks!!!