-
Notifications
You must be signed in to change notification settings - Fork 94
adding the Flood fill in Java and CPP #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds Flood Fill algorithm implementations for LeetCode problem 733 in both Java and C++. The implementations use Depth-First Search (DFS) to recursively fill connected cells with a new color starting from a given position.
Key Changes:
- Added DFS-based Flood Fill implementation in Java
- Added DFS-based Flood Fill implementation in C++
- Added documentation file explaining the algorithm's complexity
Reviewed changes
Copilot reviewed 4 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| java/FloodFillDFS.java | Java implementation of Flood Fill using DFS with example usage |
| java/Solution.class | ❌ Compiled bytecode file (should not be committed) |
| java/FloodFillBFS.class | ❌ Compiled bytecode file (should not be committed) |
| C++/FloodFillDFS.cpp | C++ implementation of Flood Fill using DFS with example usage |
| C++/FloodFillDFS.exe | ❌ Compiled executable (should not be committed) |
| README_FLOOD_FILL.md | Documentation describing the algorithm and complexity |
| .vscode/tasks.json | VS Code build configuration with hardcoded local paths |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Closes #193
Implemented Flood Fill (733) in Java and C++.