Skip to content

bucketsize/Scala-Counting-Cells-in-Sector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

This is to calculate Largest Sector in a Grid.

More here http://technicalshowoff.blogspot.in/2011/04/counting-cells-in-sector.html to find the description of the problem.

To define inputs, change the line at number 14 in LargestArea.scala, the following(which can be input from say AWT or Swing)

def getFilledCells = Set((0,0), (0,1), (0,2), (1,2), (2,0), (2, 1)) //Your input comes here

To run the sample,

scalac -d ./class LargestArea.scala

scala -classpath ./class:. area.LargestArea

//To run as Java
java -classpath /usr/share/scala/lib/scala-library.jar:./class:. area.LargestArea

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published