Skip to content

A java-spring boot application to count number of islands in a 2D array

Notifications You must be signed in to change notification settings

kanika-singla/CountIslands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CountIslands

A java-spring boot application to count number of islands in a 2D array

Steps:

  1. Import the project. If you are using IntelliJ IDEA, please choose Maven to import dependencies.

  2. Run the application using "Run -> IslandsApplication" or from terminal "mvn spring-boot:run"

  3. Open "http://localhost:8080" in your favorite browser

  4. Input rows, columns, and in the textarea, input your 2D array separated by "," and "newline" like below:

    1, 1, 0, 0, 0

    0, 1, 0, 0, 1

    1, 0, 0, 1, 1

    0, 0, 0, 0, 0

    1, 0, 1, 0, 1

  5. Click on Submit and it should show you the number of islands.

About

A java-spring boot application to count number of islands in a 2D array

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published