Calculate span of stock’s price for all n days where a series of n daily price quotes for a stock is given.
Ex; if an array of 7 days prices is given as {100, 80, 60, 70, 60, 75, 85}, then the span values for corresponding 7 days are {1, 1, 1, 2, 1, 4, 6}
Have you read the Contribution Guidelines?
Yes
Pitch
One of the important problems so adding this.
Assignees
(Do not make changes in this section until asked to do so)
C -
C# -
C++ - @Sakshi2020037
Go -
Java -
Javascript -
Kotlin -
Python -
🚀 Feature
Calculate span of stock’s price for all n days where a series of n daily price quotes for a stock is given. Ex; if an array of 7 days prices is given as {100, 80, 60, 70, 60, 75, 85}, then the span values for corresponding 7 days are {1, 1, 1, 2, 1, 4, 6}
Have you read the Contribution Guidelines?
Yes
Pitch
One of the important problems so adding this.
Assignees
(Do not make changes in this section until asked to do so)
C -
C# -
C++ - @Sakshi2020037 Go -
Java -
Javascript -
Kotlin -
Python -