manan025 / DS-Algo-Zone

This repository contains codes for various data structures and algorithms in C, C++, Java, Python, C#, Go, JavaScript and Kotlin.
MIT License
25 stars 78 forks source link

Stock Span Problem #242

Open Sakshi2020037 opened 3 years ago

Sakshi2020037 commented 3 years ago

🚀 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 -

Sakshi2020037 commented 3 years ago

please assign c++ to me

manan025 commented 3 years ago

Assigned C++ @Sakshi2020037