-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQuestion221.java
More file actions
50 lines (42 loc) · 919 Bytes
/
Copy pathQuestion221.java
File metadata and controls
50 lines (42 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
Author: Ananthanarayanan R
Section: Algorithms
Question: 221
*/
import java.util.*;
public class Question221
{
public static int maximalSquare(char[][] matrix)
{
int area = 0;
int limit = Math.min(matrix.length,matrix[0].length);
for(int i = 0;i<limit;i++)
{
System.out.println(i);
//Define a Square
for(int row = 0;row<matrix.length;row++)
{
for(int col = 0;col<matrix.length;col++)
{
}
}
}
return 1;
}
public static void display(char[][] matrix)
{
for(int i = 0;i<matrix.length;i++)
{
for(int j = 0;j<matrix[0].length;j++)
{
System.out.print(matrix[i][j]+" ");
}
System.out.println();
}
}
public static void main(String[] args)
{
char[][] matrix = {{'1','0','1','0','0'},{'1','0','1','1','1'},{'1','1','1','1','1'},{'1','0','0','1','0'}};
display(matrix);
}
}