This is really one of the most underrated video on KZbin. The way you have explained this concept is awesome. Please do continue this good work. Everyone can be a good programmer/coder but everyone can't be a good teacher.
@nikoo283 жыл бұрын
Thanks for all the love and support
@HarshChauhan-ur4jy2 ай бұрын
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!
@bhavyakarma867812 күн бұрын
the best , easy and good approach for the problem thanku so much nikhil for this
@saitejanedunoori54517 ай бұрын
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 .
@krishnenduroy3673Ай бұрын
It was super smooth and easy to understand. Thanks 👍
@Sridevikrish214 ай бұрын
the way of teaching makes us to solve the more problems
@nikoo284 ай бұрын
love it
@mikedelta6588 ай бұрын
Fantastic and clear explanation. Thank you!
@nikoo287 ай бұрын
You're very welcome!
@aarzoo2302 Жыл бұрын
u explain everything and it was quite easy to understand, thankyouuu
@siva_avinash_ Жыл бұрын
The way you make things clear is superr
@sohitmaurya47823 жыл бұрын
Great Explanation👏👏👏
@atifraza99602 жыл бұрын
The way of your explanation excellent 👏👏👏
@ashishsonii8 күн бұрын
please upload more dsa question.. i only want to learn from you
@rambhaktuchihaobito79872 ай бұрын
Thank you sir ❤
@casstansa3 ай бұрын
brilliant🤩
@_shezzy5 ай бұрын
Will this solution work if input is [1,2,3] and target is 2
@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-fi3jy6 ай бұрын
just love the explanation
@ashishsonii8 күн бұрын
please upload more dsa question.. i only want to learn from you
@ashishsonii8 күн бұрын
please upload more dsa question.. i only want to learn from you