Sir I have a one doubt.???? Please help me. My question is I have search last digit instead of mid digit and it shows last index of array. How?? We have actually use a arr[mid ] formula then how can be a last digit index have be shown. I mean by seeing the code and formula. It should only show the mid value of number. Sir I am really confused. Please help me..... 😩😩😩😩
Mid is calculated based on these two indexes. These two indexes values depends on whether the value we are searching is greater or less than the value present at mid index.
The Last Element does not consider in the program............ for Example we consider an array {1,2,3,4,5) and we search The Element 5 and The Output Become The Element is not present in list ,, How to solve This Problem?? plz Tell
Hi Pranav, I run the code and entered the value you mentioned in the comment. The output was value found at index 4. You can check itself by running the code. Also, you check the code link mentioned in description box.
OK but how it shows value of last digit. I mean by seeing the formula. It should only solve and show the mid value index. I am confuse. Please help me..
Coding tutorials done by Indians are usually: 1. Background noise > tutorial voice. ALWAYS. 2. IDEs that you probably have never seen, or sometimes just whiteboard. 3. Runs the code via command prompt. 3. Makes you feel dumb by solving complex problems like a piece of cake.
Very nice and detailed video!
Thanks for you comment. Also, you check the code link mentioned in description box.
Definition of detailed explanation
🤩
detailed explanations. thank you so much for the video.
Thank you
Very helpful & clear. Thanks for taking the time to make this video
Thank you
Excellent teaching technique
Thank you
Thankiuu bhaiya.....it was very helpful ♥️♥️
You're welcome 😊
Really very helpful and detailed video. Thank you.
Glad you enjoyed it!
Simple and nice example.. 👍
Thank you. I am glad you liked it.
nice n silple ...thanks..
Thank you
Can I hv names In the output instead of integers ?
Great i am searching this
Great
Very detailed video, thank you.
I am glad you like it.
Awesome 💐
Thanks 🤗
Very clear
thank you very much
Thanks for your comment.
Sir I have a one doubt.????
Please help me.
My question is I have search last digit instead of mid digit and it shows last index of array. How??
We have actually use a arr[mid ] formula then how can be a last digit index have be shown.
I mean by seeing the code and formula. It should only show the mid value of number.
Sir I am really confused. Please help me..... 😩😩😩😩
Mid is calculated based on these two indexes. These two indexes values depends on whether the value we are searching is greater or less than the value present at mid index.
Bro why doesn't it applicable for array size 5 or greater than that only applicable below size 4??
It is also applicable for the array size 5
@@ProgrammingTutorials1M no bro I tried u check once please actually the logic you used is wrong I think kindly check once
If the highest index value is in odd then, what is the mid index value
Let's assume, if start = 0 and end = 5 then mid is 2. As we have declared as int.
nice video bro...
Thanks for your appreciation.
my I ask why did you put mid=0 ?
just giving an initial value
The Last Element does not consider in the program............ for Example we consider an array {1,2,3,4,5) and we search The Element 5 and The Output Become The Element is not present in list ,, How to solve This Problem?? plz Tell
Hi Pranav, I run the code and entered the value you mentioned in the comment. The output was value found at index 4. You can check itself by running the code. Also, you check the code link mentioned in description box.
OK but how it shows value of last digit. I mean by seeing the formula. It should only solve and show the mid value index.
I am confuse. Please help me..
Why did you us for loop?
Just for taking number of specified inputs. You can also do it by declaring an array. In that case, you don't have to take an input.
Coding tutorials done by Indians are usually:
1. Background noise > tutorial voice. ALWAYS.
2. IDEs that you probably have never seen, or sometimes just whiteboard.
3. Runs the code via command prompt.
3. Makes you feel dumb by solving complex problems like a piece of cake.
Sir I got error that is using class Scanner but location is in class BinarySearch
Please share your code
What if the total elements of array are even
It works in a same way.
Everything was good but there is not proper explanation...
bro add program on BFS and DFS algrorithem in java
Sure, I'll do that.
plz expln wht is arr[i]= in.nextInt() .thnks
we are taking an input and store it at each index of array. For example - arr[0] = 1, arr[1] = 2 etc
arr[i] = in.nextInt() is taking the user inputted values and putting them into the array.....
sorry its my mistake bro so sorry