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.
the thief is greedy, not the algorithm. you need to find the optimal solution
Why do you wanna use chatgtp for katas ???
It is the perimiter of the land. for every block that is attatched perimiter is +2. When it is the end/start block it is +3.
[
[X X X O O X],
[O X X X O X]
]
The first 6 X's has a perimiter of 12 because 3 top, 3 bottom, 2 left, 2 right, and a displacement of 2 center (because they
are shifted).
maybe use a loop, put all X's in a multi dimensional array, use list length to calculate for top, excess or lack of X for center, and len of the overall list to calculate sides. and you would probably have to make sure the X's are connected
See the image, you'll see the path to solution.. best of luck
I also cant figure it out.
Did you figure out how they get 24 and 18 from those pictures?
Do you see the image? Count the yellow segments, the unit is one grid.