Skip to content
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

Title: Implement Finding Maximum area in a Histogram #63

Closed
Ansh-Vikalp opened this issue Oct 16, 2024 · 2 comments
Closed

Title: Implement Finding Maximum area in a Histogram #63

Ansh-Vikalp opened this issue Oct 16, 2024 · 2 comments
Labels
Assigned📋 This issue has been assigned to you! hacktoberfest2024 Your contribution is part of Hacktoberfest 2024! 🎉

Comments

@Ansh-Vikalp
Copy link
Contributor

Initiative (Required)

Hacktoberfest 2024 🎃

Is your feature request related to a problem? Please describe.

Yes, the request addresses the problem of finding the maximum rectangular area in a histogram, which is a well-known problem in computational geometry and can be used in image processing, graphical applications, and other data visualizations.

Describe the solution you'd like.

The solution should efficiently compute the largest rectangular area that can be formed by consecutive bars in the histogram. This can be achieved using a stack-based approach to determine the boundaries of each rectangle. The solution should aim for a time complexity of O(n), where n is the number of bars in the histogram.

Add any other context or screenshots about the feature request here.

Example test cases:

Input: histogram = [6, 2, 5, 4, 5, 1, 6] → Output: 12
Input: histogram = [2, 1, 5, 6, 2, 3] → Output: 10

image from GFG

Image taken from Geek For Geeks

Copy link

@Ansh-Vikalp

It's great having you contribute to this project

Thanks for opening this Issue 🙌 , Welcome to SkillShow 💖 We will review everything and get back to you.
Make sure to give a star to this repo before making a fork! Thank you :)

@Kushal997-das Kushal997-das added Assigned📋 This issue has been assigned to you! hacktoberfest2024 Your contribution is part of Hacktoberfest 2024! 🎉 labels Oct 17, 2024
Copy link

Hi @Ansh-Vikalp 👋, your issue #63 has been successfully closed ✅. Thank you for your valuable contribution! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Assigned📋 This issue has been assigned to you! hacktoberfest2024 Your contribution is part of Hacktoberfest 2024! 🎉
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants