In this video, we are going to look at a tricky question of stack: stock span Description: 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 the span of stocks price for all n days. The span Si of the stocks 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.

For example, 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}. Link: https://practice.geeksforgeeks.org/problems/stock-span-problem-1587115621/1 In this video, you’ll also learn about asymptotic notations, they are basically mathematical notations which represent order of growth of any mathematical function. There are three famous notations which you’ll see in this video, they are big O , Theta , Omega. Welcome to the first video Tutorial on Data Structures And Algorithms. In this video I am going to provide an Introduction to Data Structures And Algorithms. This Course is created to Explain the Fundamentals of data structures and algorithms. This video Will explain What is data?, What is data structure?, The Need for Data Structures, What is algorithm? #DataStructures #Algorithms #DSandAlgo #ProgrammingKnowledge ★★★Top Online Courses From ProgrammingKnowledge ★★★

Python Programming Course ➡️ http://bit.ly/2vsuMaS ⚫️ http://bit.ly/2GOaeQB

Java Programming Course ➡️ http://bit.ly/2GEfQMf ⚫️ http://bit.ly/2Vvjy4a

Bash Shell Scripting Course ➡️ http://bit.ly/2DBVF0C ⚫️ http://bit.ly/2UM06vF

Linux Command Line Tutorials ➡️ http://bit.ly/2IXuil0 ⚫️ http://bit.ly/2IXukt8

C Programming Course ➡️ http://bit.ly/2GQCiD1 ⚫️ http://bit.ly/2ZGN6ej

C++ Programming Course ➡️ http://bit.ly/2V4oEVJ ⚫️ http://bit.ly/2XMvqMs

PHP Programming Course ➡️ http://bit.ly/2XP71WH ⚫️ http://bit.ly/2vs3od6

Android Development Course ➡️ http://bit.ly/2UHih5H ⚫️ http://bit.ly/2IMhVci

C# Programming Course ➡️ http://bit.ly/2Vr7HEl ⚫️ http://bit.ly/2W6RXTU

JavaFx Programming Course ➡️ http://bit.ly/2XMvZWA ⚫️ http://bit.ly/2V2CoAi

NodeJs Programming Course ➡️ http://bit.ly/2GPg7gA ⚫️ http://bit.ly/2GQYTQ2

Jenkins Course For Developers and DevOps ➡️ http://bit.ly/2Wd4l4W ⚫️ http://bit.ly/2J1B1ug

Scala Programming Tutorial Course ➡️ http://bit.ly/2PysyA4 ⚫️ http://bit.ly/2PCaVj2

Bootstrap Responsive Web Design Tutorial ➡️ http://bit.ly/2DFQ2yC ⚫️ http://bit.ly/2VoJWwH

MongoDB Tutorial Course ➡️ http://bit.ly/2LaCJfP ⚫️ http://bit.ly/2WaI7Ap

QT C++ GUI Tutorial For Beginners ➡️ http://bit.ly/2vwqHSZ ★★★ Online Courses to learn ★★★

Data Science – http://bit.ly/2BB3PV8 | http://bit.ly/2IOrpni

Machine Learning – http://bit.ly/2J2xex1 Artificial Intelligence – http://bit.ly/2AeIHUR | http://bit.ly/2PCCBEb

Data Analytics with R Certification Training- http://bit.ly/2rSKHNP

DevOps Certification Training – http://bit.ly/2T5P6bQ

AWS Architect Certification Training – http://bit.ly/2PRHDeF

Java, J2EE & SOA Certification Training – http://bit.ly/2EKbwMK

AI & Deep Learning with TensorFlow – http://bit.ly/2AeIHUR

Big Data Hadoop Certification Training- http://bit.ly/2ReOl31

AWS Architect Certification Training – http://bit.ly/2EJhXjk

Selenium Certification Training – http://bit.ly/2BFrfZs

Tableau Training & Certification – http://bit.ly/2rODzSK

Linux Administration Certification Training-http://bit.ly/2Gy9GQH ★★★ Follow ★★★

My Website – http://www.codebind.com DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

# The Stock Span Problem | C++

**The Stock Span Problem | C++**