-
Notifications
You must be signed in to change notification settings - Fork 19.9k
Implement Trapped Rain Water problem using Dynamic Programming #5102
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
☔ View full report in Codecov by Sentry. |
src/test/java/com/thealgorithms/dynamicprogramming/TrappedRainWaterTest.java
Show resolved
Hide resolved
src/main/java/com/thealgorithms/dynamicprogramming/TrappedRainWater.java
Show resolved
Hide resolved
Since: Line 3 in 295ac4b
and the fact that it is a leet code problem, I have to close it. |
"Trapped rainwater" is a classic problem in computer science and algorithm design. It's often used as an example in dynamic programming, as well as in various coding challenges, including those found on platforms like LeetCode. The problem involves calculating how much rainwater can be trapped in between blocks or walls of different heights. Solving this problem efficiently requires clever algorithmic thinking, and dynamic programming is one approach that can be used to solve it optimally. So, while it's commonly encountered as a problem on coding platforms like LeetCode, you can see that it's not just a LeetCode problem; it's a broader algorithmic problem used to teach and practice dynamic programming techniques like other problem such as coinchange, knapsack and so on. Would you mind re-opening this PR again @vil02. |
clang-format -i --style=file path/to/your/file.java