Errichto / youtube

codes for my streams and YT videos
MIT License
2.65k stars 520 forks source link

Adds Segment Tree implementation of the greedy function to calculate … #4

Closed himanshu-pareek closed 4 years ago

himanshu-pareek commented 4 years ago

Hi Errichto, I have implemented your idea for calculating maximum profit by buying and selling stocks using a greedy technique using Segment Tree. The implementation is beginner-friendly and recursive. I have also tested the implementation. Many people view your youtube channel and GitHub repository and you are quite busy right now. So, I thought of implementing it and want other people to know this implementation. Thank you, Himanshu