Re: Finding blocks of symbols on a 2dimensional array
- From: Nelu <please@xxxxxxxxxxxxxx>
- Date: Mon, 9 Jan 2006 16:52:27 +0000 (UTC)
On 2006-01-09, efialtis <efialtis@xxxxxxxxxxx> wrote:
>
> x x o o x
> x o o o o
> o o x x o
> o o o x x
> x x o o o
>
> I want to write a function which calculates the number of ball blocks
> on a specific board. For example the above board has 4 ball blocks
> (1 or more balls being surrounded by empty spaces).
Are these considered as having two blocks or one block:
ox
xo
and
ooxo
ooox
oooo
oooo
?
--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)
.
- Follow-Ups:
- Re: Finding blocks of symbols on a 2dimensional array
- From: efialtis
- Re: Finding blocks of symbols on a 2dimensional array
- References:
- Finding blocks of symbols on a 2dimensional array
- From: efialtis
- Finding blocks of symbols on a 2dimensional array
- Prev by Date: Re: Passing Struct to Function to be Modified then used by Caller
- Next by Date: Re: segfault w/ block, but not file scope
- Previous by thread: Re: Finding blocks of symbols on a 2dimensional array
- Next by thread: Re: Finding blocks of symbols on a 2dimensional array
- Index(es):
Relevant Pages
|