input.txt is the input file from where you have to take as input ,this input.txt file having 200 cases from where you have to take each case one by one.So here i am getting problem in taking multiple...
Type: Posts; User: arunk
input.txt is the input file from where you have to take as input ,this input.txt file having 200 cases from where you have to take each case one by one.So here i am getting problem in taking multiple...
Input file data.txt.
Output
-----------
0101010011
1110000000
1110000111
1100001010
0100001000
0010101001
1000101001
<package com.grid;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class CountMaxSector {
/**
* author arun
In this program i am able to read only one case so please help me out to read 200 cases as soon as posible.
Problem Statement - Counting Cells in a Sector
Consider a two-dimensional grid of cells, each of which may be empty or filled. The filled cells that are connected form a sector. Two cells are...