Buying and selling stocks
Problem:
Given an array of stock prices, find the maximum profit that can be earned by doing a single transaction of buy and sell in the given period of time.
e.g:
100, 80, 120, 130, 70, 60, 100, 125
Profit: 65
This video explains an efficient solution to buying and selling stocks problem
Website: http://www.ideserve.co.in
Facebook: https://www.facebook.com/IDeserve.co.in
Видео Buying and selling stocks канала IDeserve
Given an array of stock prices, find the maximum profit that can be earned by doing a single transaction of buy and sell in the given period of time.
e.g:
100, 80, 120, 130, 70, 60, 100, 125
Profit: 65
This video explains an efficient solution to buying and selling stocks problem
Website: http://www.ideserve.co.in
Facebook: https://www.facebook.com/IDeserve.co.in
Видео Buying and selling stocks канала IDeserve
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Programming Interview Question: How to print all diagonal's sums for a given binary tree?Level Order TraversalReverse a Linked List - IterativeProgramming Interview Question: Searching a 2D Sorted MatrixImplement a fair coin given an unfair coinBinary SearchMinimum length subarray of an unsorted array sorting which results in complete sorted arrayFind an element in a sorted rotated array without finding pivot (minimum element)Maximum size square sub-matrix with all 1sBuilding Bridges Dynamic ProgrammingLeaders in an arrayFind intersection of two Linked Lists - O(A + B) Time Complexity and O(1) Space ComplexityCreate a balanced Binary Search Tree (BST) from a sorted arrayNext greater element in an arraySpiral level order traversal of a binary treeProgramming Interview Question: Recover Binary Search TreeDetect a loop in a linked listProgramming Interview Question: Find intersection of two Linked ListsFind an element in a sorted rotated arrayDemo of IDeserve web platform www.ideserve.co.in