adding the Flood fill in Java and CPP#211
Open
prem043m wants to merge 5 commits intosachith-1:mainfrom
Open
Conversation
There was a problem hiding this comment.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #193
Implemented Flood Fill (733) in Java and C++.