I just started learning DSA when i am unable to solve leet code problem i first search in your youtube channel for a solution, In my opinion you are best at explain algorithms, Keep on going .
@HarshChauhan-ur4jy4 ай бұрын
I watched two explanations before this but couldn’t understand them. However, your teaching method was awesome, and I was able to write the code on my own right after understanding your solution. Thank you!
@Sridevikrish215 ай бұрын
the way of teaching makes us to solve the more problems
@nikoo285 ай бұрын
love it
@bhavyakarma86782 ай бұрын
the best , easy and good approach for the problem thanku so much nikhil for this
@siva_avinash_ Жыл бұрын
The way you make things clear is superr
@mikedelta65810 ай бұрын
Fantastic and clear explanation. Thank you!
@nikoo289 ай бұрын
You're very welcome!
@krishnenduroy36733 ай бұрын
It was super smooth and easy to understand. Thanks 👍
@aarzoo2302 Жыл бұрын
u explain everything and it was quite easy to understand, thankyouuu
@atifraza99603 жыл бұрын
The way of your explanation excellent 👏👏👏
@ashishsonii2 ай бұрын
please upload more dsa question.. i only want to learn from you
@Parth-z1k3 жыл бұрын
Great Explanation👏👏👏
@rambhaktuchihaobito79874 ай бұрын
Thank you sir ❤
@_shezzy7 ай бұрын
Will this solution work if input is [1,2,3] and target is 2
@casstansa4 ай бұрын
brilliant🤩
@madhumithraravi90873 жыл бұрын
What happens if the first and the last index both exists in left bound? or right bound? this approach will return last index or first index as -1 right?
@nikoo283 жыл бұрын
Let’s say both first and last exist in the left bound. When you first divide the array, you will not find the element in the middle, so following a binary search algorithm you will look in the left half. This will be your new array now. So you will again find the first and last index in the left half. Try out a test case on your own and you will understand it better :)
@madhumithraravi90873 жыл бұрын
@@nikoo28 Kind of recursive
@nikoo283 жыл бұрын
Yes indeed…this is a recursive solution. Just like binary search.
@madhumithraravi90873 жыл бұрын
@@nikoo28 thank you
@fero___30052 жыл бұрын
@@nikoo28 when low < high breaks the loop and the low value = 3 but the index value is still 2 how will you get 3 as output plz explain sir
@KUNALPRAJAPATI-fi3jy8 ай бұрын
just love the explanation
@ashishsonii2 ай бұрын
please upload more dsa question.. i only want to learn from you
@ashishsonii2 ай бұрын
please upload more dsa question.. i only want to learn from you