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

Stock Span Problem #124

Open
Vanshikagarg17 opened this issue Oct 3, 2021 · 5 comments
Open

Stock Span Problem #124

Vanshikagarg17 opened this issue Oct 3, 2021 · 5 comments
Labels
Array Issues on array data structure Dynamic Programming Issues involving Dynamic Programming Hacktoberfest Participating in Hacktoberfest '21 intermediate intermediate issue

Comments

@Vanshikagarg17
Copy link
Member

No description provided.

@Vanshikagarg17
Copy link
Member Author

Question : The stock span problem is a financial problem where we have a series of n daily price quotes for a stock and we need to calculate span of stock’s price for all n days.
The span Si of the stock’s price on a given day, i is defined as the maximum number of consecutive days just before the given day, for which the price of the stock on the current day is less than or equal to its price on the given day.

@Ananyaas Ananyaas added Array Issues on array data structure Dynamic Programming Issues involving Dynamic Programming Hacktoberfest Participating in Hacktoberfest '21 intermediate intermediate issue labels Oct 4, 2021
@neilotpal
Copy link
Contributor

Please assign this issue to me, I would like to solve this problem in C++ language in O(n) Time Complexity and O(n) Auxiliary Space

@Ananyaas
Copy link
Collaborator

Ananyaas commented Oct 6, 2021

@neilotpal you can work on this issue. All the best!

@pratisth2
Copy link

Please assign this issue to me.
Language=C++
Time complexity=o(n)
Space Complexity=o(n)
Thank you

@shrutigrover25
Copy link

Can you assign me this issue
Language - C++
Time complexity-O(n)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Array Issues on array data structure Dynamic Programming Issues involving Dynamic Programming Hacktoberfest Participating in Hacktoberfest '21 intermediate intermediate issue
Projects
None yet
Development

No branches or pull requests

5 participants