Binary Search Program in Java

  Рет қаралды 35,439

Programming Tutorials

Programming Tutorials

Күн бұрын

Пікірлер
@sushmasinghSS
@sushmasinghSS 7 жыл бұрын
Very nice and detailed video!
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
Thanks for you comment. Also, you check the code link mentioned in description box.
@thorbiy
@thorbiy 4 жыл бұрын
Definition of detailed explanation 🤩
@abhishekchouhan6284
@abhishekchouhan6284 2 жыл бұрын
Excellent teaching technique
@ProgrammingTutorials1M
@ProgrammingTutorials1M 2 жыл бұрын
Thank you
@chuckmcgill3215
@chuckmcgill3215 5 жыл бұрын
Very helpful & clear. Thanks for taking the time to make this video
@ProgrammingTutorials1M
@ProgrammingTutorials1M 4 жыл бұрын
Thank you
@mohammadzeeshan2699
@mohammadzeeshan2699 3 жыл бұрын
Thankiuu bhaiya.....it was very helpful ♥️♥️
@ProgrammingTutorials1M
@ProgrammingTutorials1M 3 жыл бұрын
You're welcome 😊
@shretasathe6409
@shretasathe6409 3 жыл бұрын
detailed explanations. thank you so much for the video.
@ProgrammingTutorials1M
@ProgrammingTutorials1M 3 жыл бұрын
Thank you
@tanvirshorif267
@tanvirshorif267 4 жыл бұрын
Really very helpful and detailed video. Thank you.
@ProgrammingTutorials1M
@ProgrammingTutorials1M 4 жыл бұрын
Glad you enjoyed it!
@shahrukhshaikh9558
@shahrukhshaikh9558 6 жыл бұрын
Simple and nice example.. 👍
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
Thank you. I am glad you liked it.
@vivekdivekar48
@vivekdivekar48 3 жыл бұрын
Great i am searching this
@ProgrammingTutorials1M
@ProgrammingTutorials1M 3 жыл бұрын
Great
@zahedali7079
@zahedali7079 3 жыл бұрын
Awesome 💐
@ProgrammingTutorials1M
@ProgrammingTutorials1M 3 жыл бұрын
Thanks 🤗
@harshithamohan6569
@harshithamohan6569 3 жыл бұрын
Can I hv names In the output instead of integers ?
@o.yetunde7804
@o.yetunde7804 6 жыл бұрын
Very detailed video, thank you.
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
I am glad you like it.
@syedmustafa7875
@syedmustafa7875 5 жыл бұрын
nice n silple ...thanks..
@ProgrammingTutorials1M
@ProgrammingTutorials1M 4 жыл бұрын
Thank you
@devesh8537
@devesh8537 3 жыл бұрын
Bro why doesn't it applicable for array size 5 or greater than that only applicable below size 4??
@ProgrammingTutorials1M
@ProgrammingTutorials1M 3 жыл бұрын
It is also applicable for the array size 5
@devesh8537
@devesh8537 3 жыл бұрын
@@ProgrammingTutorials1M no bro I tried u check once please actually the logic you used is wrong I think kindly check once
@youkeshgurung5280
@youkeshgurung5280 4 жыл бұрын
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..... 😩😩😩😩
@ProgrammingTutorials1M
@ProgrammingTutorials1M 4 жыл бұрын
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.
@Ahmed-wz8qb
@Ahmed-wz8qb 6 жыл бұрын
Very clear thank you very much
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
Thanks for your comment.
@sachinbhalla14
@sachinbhalla14 6 жыл бұрын
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
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
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.
@youkeshgurung5280
@youkeshgurung5280 4 жыл бұрын
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..
@GalS1767
@GalS1767 5 жыл бұрын
my I ask why did you put mid=0 ?
@abdullahrehman8367
@abdullahrehman8367 5 жыл бұрын
just giving an initial value
@globbyglad3244
@globbyglad3244 5 жыл бұрын
If the highest index value is in odd then, what is the mid index value
@ProgrammingTutorials1M
@ProgrammingTutorials1M 5 жыл бұрын
Let's assume, if start = 0 and end = 5 then mid is 2. As we have declared as int.
@adithyadasarathi1311
@adithyadasarathi1311 4 жыл бұрын
Why did you us for loop?
@ProgrammingTutorials1M
@ProgrammingTutorials1M 4 жыл бұрын
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.
@MElA-qi1hc
@MElA-qi1hc 3 жыл бұрын
Sir I got error that is using class Scanner but location is in class BinarySearch
@ProgrammingTutorials1M
@ProgrammingTutorials1M 3 жыл бұрын
Please share your code
@KaisarAnvar
@KaisarAnvar Жыл бұрын
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.
@amzadhussain6639
@amzadhussain6639 6 жыл бұрын
nice video bro...
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
Thanks for your appreciation.
@padmaavula9876
@padmaavula9876 6 жыл бұрын
What if the total elements of array are even
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
It works in a same way.
@venkaiahmalli4375
@venkaiahmalli4375 5 жыл бұрын
bro add program on BFS and DFS algrorithem in java
@ProgrammingTutorials1M
@ProgrammingTutorials1M 5 жыл бұрын
Sure, I'll do that.
@brainfreaks5553
@brainfreaks5553 2 жыл бұрын
Everything was good but there is not proper explanation...
@shaheenshaikh6701
@shaheenshaikh6701 6 жыл бұрын
plz expln wht is arr[i]= in.nextInt() .thnks
@ProgrammingTutorials1M
@ProgrammingTutorials1M 6 жыл бұрын
we are taking an input and store it at each index of array. For example - arr[0] = 1, arr[1] = 2 etc
@marqueburgess9622
@marqueburgess9622 6 жыл бұрын
arr[i] = in.nextInt() is taking the user inputted values and putting them into the array.....
@sachinbhalla14
@sachinbhalla14 6 жыл бұрын
sorry its my mistake bro so sorry
Binary Search in Java - Full Simple Coding Tutorial
17:48
Coding with John
Рет қаралды 129 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,1 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 11 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Чистка воды совком от денег
00:32
FD Vasya
Рет қаралды 5 МЛН
Binary Search (Java Tutorial)
6:51
Bill Barnum
Рет қаралды 59 М.
Learn Binary Search in 10 minutes 🪓
10:04
Bro Code
Рет қаралды 128 М.
Java Program to Check Perfect Number
7:56
Programming Tutorials
Рет қаралды 19 М.
Java Collections Explained (with examples)
10:39
Visual Computer Science
Рет қаралды 98 М.
Introduction to Binary Search
16:25
Lalitha Natraj
Рет қаралды 163 М.
you will never ask about pointers again after watching this video
8:03
Shortest Unsorted Continuous Subarray | Java Code | Programming Tutorials
15:53
Insertion Sort in Java Explained (With Example And Code)
5:57
FelixTechTips
Рет қаралды 19 М.
Binary Search Explained!
13:08
Job Ready Programmer
Рет қаралды 67 М.
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,1 МЛН