Code-Crossroad icon indicating copy to clipboard operation
Code-Crossroad copied to clipboard

Stock Span Problem

Open Vanshikagarg17 opened this issue 3 years ago • 5 comments

Vanshikagarg17 avatar Oct 03 '21 19:10 Vanshikagarg17

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.

Vanshikagarg17 avatar Oct 03 '21 19:10 Vanshikagarg17

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

neilotpal avatar Oct 06 '21 07:10 neilotpal

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

Ananyaas avatar Oct 06 '21 18:10 Ananyaas

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

pratisth2 avatar Oct 07 '21 08:10 pratisth2

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

shrutigrover25 avatar Oct 10 '21 12:10 shrutigrover25