Web wrong answer

programming
Tags: #<Tag:0x00007f241bad2500>

#1

I suspect that the answer given by the web is incorrect.

given the next input:
[ “XOOOOOXXOX”, “OOXXXXOOXX”, “XXOXXOOXXO”, “OXOXXXXXXO”, “XOXXOXOXXX”, “OOOOOOOXOO”, “XOXXXOOXOX”, “XXXOXOXXXO” ]
My program return 9, but the expected returned value is 7.

I know that my program is write, because I write it down and count in my self all the shapes and indeed I got 9 and not 7.

Unless I didn’t understand the exercise write, I would say that the web system is wrong.

Dose for anyone it happen too?


#2
1OOOOO22O3
OO3333OO33
44O33OO33O
O4O333333O
5O33O3O333
OOOOOOO3OO
6O666OO3O7
666O6O333O

it’s 7