algorithm-archivists / algorithm-archive

A collaborative book on algorithms
https://www.algorithm-archive.org
MIT License
2.38k stars 356 forks source link

Flood fill in java #1003

Open harper0201 opened 2 years ago

harper0201 commented 2 years ago

add java code for implementation of flood fill

Amaras commented 2 years ago

Hi, thank you for your interest in the Algorithm Archive! We will try to review your code as quickly as possible to get it merged in if we feel your code is high enough quality.

However, the first step of admissibility is not yet reached: you need to get your code to compile on a Docker Ubuntu-based environment, which, as I am writing this, just failed. Below is the full error (slightly reformatted):

contents/flood_fill/code/java/main.java:5: error: cannot find symbol
        flood_fill f = new flood_fill();
        ^
  symbol:   class flood_fill
  location: class main

contents/flood_fill/code/java/main.java:5: error: cannot find symbol
        flood_fill f = new flood_fill();
                                   ^
  symbol:   class flood_fill
  location: class main

contents/flood_fill/code/java/main.java:6: error: cannot find symbol
        Point start = new Point(0,0);
        ^
  symbol:   class Point
  location: class main

contents/flood_fill/code/java/main.java:6: error: cannot find symbol
        Point start = new Point(0,0);
                                    ^
  symbol:   class Point
  location: class main

Please fix it, so we can review and eventually merge your code in.

harper0201 commented 2 years ago

Hi, Thanks for your patience. I just committed a new version which is already tested in my ubuntu-based environment. Please help check it.

Amaras commented 2 years ago

Thank you for the reactivity (relative to timezones, of course)! If this compiles, I'll try to get someone to review it :)

harper0201 commented 2 years ago

Hi, Thanks for your time and patience. Maybe because I did something wrong about git operations, so it became a empty file. I have already fixed it. Could you please check it again ?