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