Unfortunately no.
Type: Posts; User: godmars20
Given a square two-dimensional array (the number of rows is equal to the number of columns (which contains Boolean values -
true / false.
We will define: true region in the array (true region),...
Sorry I tried my best.
You understood correctly.
110
110
000
this two dimensional array has 1 group
010
010
001
"Is that a two dimensional array? Do the number of rows need to be the same as the number of columns?"
yes it is two dimensional array, the numbers and rows are the same.
"Can you define what a...
everything is useful except the finals.
I would like to know how to build a recursive method that receives an matrix array and computes, without loops, how many groups of 1 it contains, group does...
//1s.
//************************************************** ******************
public class Maze
{
private boolean [][] booleanGrid = { {true,true,true},
{false,false,false},
{true,true,false},...
Thank you for the reply.
//1s.
//********************************************************************
public class Maze
{
private boolean [][] booleanGrid = { {true,true,true},
...
The method will receive a matrix array of truth and false (the array can be changed by the method), a group is the same figures that are by the sides and not across.
for example 1 equals truth and...