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

📃: Best Time to Buy and Sell Stock using Greedy Approach => LeetCode Problems #109

Closed
Saiharitha3 opened this issue Oct 19, 2024 · 6 comments

Comments

@Saiharitha3
Copy link
Contributor

🟢 Title : Best Time to Buy and Sell Stock - Optimize for Large Inputs
🟢 Programming language : Python
🟢 Objective :
Implement an efficient algorithm to maximize profit from buying and selling a stock on different days
🟢 Summary :
The naive solution with O(n²) time complexity results in Time Limit Exceeded (TLE) errors on larger datasets. The goal is to replace the nested loops with an O(n) greedy algorithm


✅ Details to Include When Taking the Issue:
Name : Sai Haritha Sardena


Happy Contributing! 🚀

Wishing you all the best on your open source journey😍.
Enjoy! 😎

Copy link

👋 Thanks for opening this issue! First please star the repository and follow me in github. We appreciate your feedback and will look into it as soon as possible.

@Saiharitha3
Copy link
Contributor Author

Hi @abhisek247767

I like to provide solution for this problem please assign to me and please add hacktoberfest label to this one,
Thank You.

@abhisek247767
Copy link
Owner

Assigned

@Saiharitha3
Copy link
Contributor Author

please review PR #115

@Saiharitha3
Copy link
Contributor Author

please review #116

Copy link

Hello @Saiharitha3! Your issue #109 has been successfully closed. ✅ Thank you for your contribution and helping us improve the project! If you have any more ideas or run into other issues, feel free to open a new one. Happy coding! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants