Комментарии:
public class Main{
public static void main(String args[]){
// linear search = Iterate through a collection one element at a time
int[] array = {9, 1, 8, 2, 7, 3, 6, 4, 5};
int index = linearSearch(array, 5);
if(index != -1) {
System.out.println("Element found at index: " + index);
}
else {
System.out.println("Element not found");
}
}
private static int linearSearch(int[] array, int value) {
for(int i = 0; i < array.length; i++) {
if(array[i] == value) {
return i;
}
}
return -1;
}
}
bro just casually explained my whole 1 hour class lmao
ОтветитьThanks, Bro!
ОтветитьThanks!
ОтветитьI am going through Cyber security school currently. The texts are very long and complicated in a reading format, yet here you are teacher better than my text books. Thank you, you've helped me understand and grasp a lot this last year.
ОтветитьRandom comment
ОтветитьThank you so much 💓
صلوا على رسول الله ❤
if u r wondering iterate = repeat
(cuz i did)
Love your series, very concise and clear!
ОтветитьMan that Gigachad icon truely sets for you.
ОтветитьPlease don't remove the commented theory Bro. I need that too. Love from India.😁
Ответитьthanks!!
Ответитьhow to put a counter++?
ОтветитьRespect, bro! <3
ОтветитьRandomly encountered this channel some time ago , got hooked to the some-programming-language-in-an hour vids
and now discovered that bro also does DSA...
now cramming for a tech interview
So... your one weird trick is being actually good at coding and great at teaching🤔😂😂 Love your content Bro💪
Ответитьwhat would be the title of that problem code?
ОтветитьVery clear bro. Thanks a lot.
ОтветитьVery nice tutorial as always!!! Is there any way to see if there another index with the same value?
ОтветитьAs always clear and easy to follow tutorial on something that will be very useful.
Thanks Bro. 👍👍
Started DSA right?
ОтветитьWhat a Beast
Ответитьthank you, keep going please
ОтветитьCool bro
ОтветитьLol you just liked my comment for more java algorithms and data structures and you posted this video😍🥰
ОтветитьDidn't you just post this poll like two days ago? you really are one of the best coding tutorial channels out there man, keep it up.
ОтветитьHey bro code ! I really enjoy watching your vids im learning something new everytime. You are smart guy ngl. And if you know LUA scripting can you make a full course about it ? I would really appreciate that.
<3
xoxo
👍
ОтветитьPOV my goal is to have a little heart from Bro code.
POV is not a POV.
Its a very informative video, great job.
Ответить