This is what i was looking for.... This is the best method to teach. This weekend was like pen, paper and tech dose. maza aa gaya..
@techdose4u3 жыл бұрын
Great :)
@oqant04243 жыл бұрын
u deserve to be subscribed.....what an explanation! literally no one explains the intution behind✌
@techdose4u3 жыл бұрын
Thanks 😊
@ShaliniNegi243 жыл бұрын
You are highly underrated!
@techdose4u3 жыл бұрын
😅 Thanks for your support.
@VikasPoonia3 жыл бұрын
May I know what microphone you are using for recording this video? Brand name?
@RahulSingh-vv9jj3 жыл бұрын
Thanks Sir
@techdose4u3 жыл бұрын
Welcome :)
@ashwiniabhishek15042 жыл бұрын
We should sum left and right ??
@FahadAli-rx7mc3 жыл бұрын
Shouldn't the base condition be initialized to INT_MAX
@E__ShameemahamedS-bx2ed3 жыл бұрын
Thanks
@techdose4u3 жыл бұрын
Welcome :)
@ManishSharma-fi2vr3 жыл бұрын
Thank You !
@techdose4u3 жыл бұрын
Welcome
@ArifulIslam-im7wr3 жыл бұрын
Thanks ❤❤❤ sir,
@techdose4u3 жыл бұрын
Welcome :)
@amu2813 жыл бұрын
I have a silly doubt which I am not able to understand. In the code we take the INT_MAX variable inside function. While coding I kept it at class level which gave me wrong ans. Now I am not clear why is it. My thought was , first you divide the problem, then for 1st Iteration solve(left), solve(right) , take the min or max(according to the qs given) and store at class level. Continue the 2nd iteration do the same and check min or max from the 1st iteration ..and continue.Finally the stored result will be the ans. I am really struggling to find out where I am wrong. Please anyone help. I was coding recursive solution.
@himanshugupta70103 жыл бұрын
Hey you can't take max at class level . you have to make It local and compute it again and again as the recursive calls enumerate. why? so lets suppose you are lest with 1 element and you know the ans is zero as per your base case and you store this in your min but since it is the min value allowed so you min will always remain zero which is not the correct ans hence we are making it local in every call.