Even though While having a full time job, you are so consistent. Just imagine how much discipline and consistent this guy would have when he was an UG student.🗿
@AMITSHARMA-oh1nq17 күн бұрын
Bro definitely the one of best channel
@purushotamkumar95969 ай бұрын
Thanks for such video. Learned many things from this video
@AMITSHARMA-oh1nq17 күн бұрын
Can you tell which is the standard problem for this trick where you defer the calculation?
@miketsubasa36118 ай бұрын
Excellent explanation!!🦸
@SahilKumar-sj6il8 ай бұрын
Sir why we are not iteratiing from P--0 in parts in iterative?Can we iterate that way?
@NeerajSharma-mz4es9 ай бұрын
nice explanation
@iWontFakeIt9 ай бұрын
oh man! was waiting for this from morning! tried understanding several approaches using binary search but none of the solutions in the discuss section were good. 🫤 also please share the segment tree code for bottom up please 🙏
@codingmohan8 ай бұрын
I would encourage you to try that first and if you face issues, I can help further.
@iWontFakeIt8 ай бұрын
@@codingmohan i tried for past two days, but couldn't figure out! please tell the approach of applying segment trees to this problem!
@codingmohan8 ай бұрын
There are 2 parts where you can utilize segment trees here - 1. Finding out L and R for the top down solution. 2. Finding out range max in range L to R in the bottom up solution. Did you understand these 2 parts atleast?