Skip to content

fix: Feature: Addition of Minimum Number of Platforms (Greedy Algorithm) #9215

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

Closed
wants to merge 1 commit into from
Closed

fix: Feature: Addition of Minimum Number of Platforms (Greedy Algorithm) #9215

wants to merge 1 commit into from

Conversation

dev-soni-07
Copy link

🚀 Feature Addition: Minimum Number of Platforms Algorithm**

Hello maintainers and fellow contributors,

I hope you're doing well! 👋 I'm excited to submit this PR, which introduces the "Minimum Number of Platforms" algorithm to TheAlgorithms/Python repository.

Why This Matters 🤔

The "Minimum Number of Platforms" problem is a fundamental one with numerous real-world applications, from optimizing transportation systems to scheduling events. By adding this algorithm to our collection, we can provide a valuable resource for learners and practitioners alike.

What's Included 📝

  • minimum_platforms.py: This file contains a Python implementation of the "Minimum Number of Platforms" algorithm, along with comments explaining the logic and approach.

How to Use 🚀

You can import the minimum_platforms function from minimum_platforms.py and use it to solve scheduling problems efficiently.

from minimum_platforms import minimum_platforms

# Example usage
arrival = [900, 940, 950, 1100, 1500, 1800]
departure = [910, 1200, 1120, 1130, 1900, 2000]

result = minimum_platforms(arrival, departure)
print("Minimum platforms required:", result)

Why I Contributed 🙌

I believe that by expanding the repertoire of algorithms in this repository, we can create a valuable resource for programmers at all levels. This algorithm, with its practical applications, is a great addition.

Fixes #9119

What's Next 📅

I'm open to feedback and suggestions for improvement. Let's work together to make this contribution even better. Feel free to share your thoughts, comments, and questions.

Thank you for considering this PR, and I look forward to your feedback! 🙏

Thanks & Regards,
Dev Soni

@algorithms-keeper
Copy link

Closing this pull request as invalid

@digital-dev-07, this pull request is being closed as none of the checkboxes have been marked. It is important that you go through the checklist and mark the ones relevant to this pull request. Please read the Contributing guidelines.

If you're facing any problem on how to mark a checkbox, please read the following instructions:

  • Read a point one at a time and think if it is relevant to the pull request or not.
  • If it is, then mark it by putting a x between the square bracket like so: [x]

NOTE: Only [x] is supported so if you have put any other letter or symbol between the brackets, that will be marked as invalid. If that is the case then please open a new pull request with the appropriate changes.

@algorithms-keeper algorithms-keeper bot closed this Oct 1, 2023
@algorithms-keeper algorithms-keeper bot added the awaiting reviews This PR is ready to be reviewed label Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting reviews This PR is ready to be reviewed invalid
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Addition of Minimum Number of Platforms (Greedy Algorithm)
1 participant