I love your videos. I have a midterm tomorrow on uni course C programming and I have been watching many videos about this topic and nobody can describe it well like you do. I used to hate C cause I didn't understand anything but after watching your videos everything makes sense. It's very detailed and contains only information that we need to know in order to understand the concept. Thank you so much for great work.
@PortfolioCourses Жыл бұрын
I’m glad you enjoy the videos, thank you so much for leaving this nice comment and good luck on your midterm! :-)
@aditopguy9785 Жыл бұрын
Thank you for putting in the time and effort to make these videos. You are explain concepts so well, way better than my university lecturer
@PortfolioCourses Жыл бұрын
You’re very welcome, I’m glad you’re enjoying the explanations! :-)
@TSkateT6662 жыл бұрын
have an exam soon in "Introduction to C" course in uni, this really helped alot!
@PortfolioCourses2 жыл бұрын
Awesome, I’m glad to hear it was helpful! And good luck on your exam! :-D
@eugeneplay94162 жыл бұрын
Love your videos. Really easy to follow along and very good explanations.
@PortfolioCourses2 жыл бұрын
Thank you very much Eugene, I'm glad to hear you enjoy the videos! :-D
@ostryy05602 жыл бұрын
Thanks my man. I am preparing for a test, and this video helped me AF. Greetings from PL 🇵🇱
@PortfolioCourses2 жыл бұрын
That's awesome I'm glad to hear it helped you out! And good luck on that test! :-)
@mongraal22722 жыл бұрын
Thaaaaank you...i I watched this video for 3 hours and i finally understood...thank u,ur logic is so impressive
@PortfolioCourses2 жыл бұрын
You’re welcome, I’m glad you figured it out! :-)
@elfullin6 ай бұрын
I like that you used recursive methods. Thank you
@Mnogojazyk2 жыл бұрын
Love your videos. Finally do I understand the concepts! Many thanks!
@PortfolioCourses2 жыл бұрын
You’re very welcome! :-D
@SouvikMandal-tl2to6 ай бұрын
a better breaking condition for the binary search would be if(l == r) rather than if(l>r) i think !
@nazaraljendli97582 жыл бұрын
best c tutorials out there thank you
@PortfolioCourses2 жыл бұрын
You're welcome Nazar! 😀 And thank you very much for the positive feedback too.
@pvcksubhashini49842 жыл бұрын
Very Nice Content Useful to all Plz make subtitles in english (In this video Subtitiles r translating in dutch when converted to english it doesn't make sense) Plz make C++ also , u r explaining very nice!!
@PortfolioCourses2 жыл бұрын
That's so weird that it auto-generated the subtitles to Dutch! Thank you for letting me know, I will see if there is anything I can to do fix that. :-) Also, I have now started a series of C++ videos as well: kzbin.info/aero/PLA1FTfKBAEX6BdpNaWp2uw-YspHwY7qwW
@pvcksubhashini49842 жыл бұрын
@@PortfolioCourses Ya i saw that one also I shared to my friends too. Thanks for the Content ☺
@PortfolioCourses2 жыл бұрын
It's interesting, but I'm not sure KZbin will allow me to "re-generate" the subtitles as English. I may need to upload my own or something, what a pain!
@johnofalltrades2000 Жыл бұрын
the mathematical operation presented in the line: int mid = l + (r - 1) / 2; doesn't work for me. My compiler seems to go out of memory bounds because of this. I've tried: int mid = (l + r) / 2; and it worked.
@PortfolioCourses Жыл бұрын
It should be: int mid = l + (r - l) / 2 So it's an l not a 1. It's more complicated, but it's actually better to do it this way instead of (l + r) /2, see this video: kzbin.info/www/bejne/gH-peKmgdrmCi6M
@johnofalltrades2000 Жыл бұрын
@@PortfolioCourses oh I see now, what a silly mistake. thank you so much for clarifying it for me.
@PortfolioCourses Жыл бұрын
No problem! :-)
@FeroLight-e2n Жыл бұрын
That was amazing .Thank you
@omatzi7251 Жыл бұрын
Great video and great teacher!
@PortfolioCourses Жыл бұрын
I’m glad you enjoyed the video and teaching! :-)
@juanmacias59222 жыл бұрын
Great video! Explained super well!
@PortfolioCourses2 жыл бұрын
I’m glad you enjoyed it Juan! :-
@veggieveggie12158 ай бұрын
what microphone do you use?
@loser22-q7wАй бұрын
isnt it reasonable to use the sizeof function to find the midpoint?
@germankoga86405 ай бұрын
I didn't understand how you calculated mid, wouldn't you have to sum the two extremes and divided them by 2 to find the mid point?
@epicgameryt4052 Жыл бұрын
You're actually kinda awesome, thanks!
@PortfolioCourses Жыл бұрын
Aww thank you so much, I really appreciate that! :-)
@bieelzzin Жыл бұрын
Thank you! Perfect explained
@PortfolioCourses Жыл бұрын
You're welcome Gabriel, I'm glad you enjoyed it! :-)
@OumaamarIsra6 ай бұрын
Thank you man you save my life
@magdugalrexon72342 жыл бұрын
Thank you for the video. It was really helpful.
@PortfolioCourses2 жыл бұрын
You're welcome! I'm glad to hear it was helpful for you. :-D
@loginashaalan28266 ай бұрын
what if the value needed is less than all the elements of the array does we do the same as return -1?
@RelAxGamingKing772 жыл бұрын
Thank you so much, really helped me out!
@PortfolioCourses2 жыл бұрын
You're very welcome, I'm glad to hear it helped you out! :-D
@athunasos164911 ай бұрын
Using a loop is more memory efficient than using a recursive function
@DeadPool-jr2er2 жыл бұрын
I love it!! Thank you!
@PortfolioCourses2 жыл бұрын
You're very welcome! :-)
@adamsetterberg52232 жыл бұрын
Love the video!
@PortfolioCourses2 жыл бұрын
This number guessing game might be close to what you're looking for: kzbin.info/www/bejne/amKxnpaddpZ7fJI And to my knowledge we can't really use binary search on an unsorted array, unless we sort it first. Here are some folks explaining why: www.quora.com/Can-binary-search-be-applied-on-unsorted-list
@adamsetterberg52232 жыл бұрын
Hello Again! I having a problem with binary searching...... So lets say that you tell you computer to "random generate" 10 numbers between 1 - 20. And you want to know if the number 7 have been generated. Do you need to bubble sort first before you use binary searching?
@PortfolioCourses2 жыл бұрын
Yes, the list needs to be sorted before you can use binary search. You could use bubble sort, or you could use something like insertion sort, selection sort, quicksort, or merge sort. In terms of performance, for very small arrays like this, using insertion sort or selection sort would be best (better than bubble sort too). For larger arrays, using something like quicksort or merge sort would be better. We have videos on all these aglorithms too: Insertion Sort: kzbin.info/www/bejne/iquap3Wlmb-kpZo Selection Sort: kzbin.info/www/bejne/j5bTe2qcedKsoKs Quicksort: kzbin.info/www/bejne/ZpunmnWDa52Bfbc Merge Sort: kzbin.info/www/bejne/gpa6pp6fbKaEgtE
@erennkose2 жыл бұрын
bro thank you so much
@PortfolioCourses2 жыл бұрын
You're welcome Aaron! :-)
@Code-nv8xl10 ай бұрын
Why you didn't use that unsorted array searching :/
@elfullin6 ай бұрын
Because you can’t use binary search on an unsorted array.
@emeziekejedidiah55472 жыл бұрын
This video is great
@PortfolioCourses2 жыл бұрын
Thank you! Very glad to hear you enjoyed it! :-D
@dabawocks11212 жыл бұрын
Thank you for this
@PortfolioCourses2 жыл бұрын
You're welcome! :-D
@maven54632 жыл бұрын
Hmm, Can't we just write mid = (l + r) / 2 🤔
@PortfolioCourses2 жыл бұрын
Great question! 😀 You could do it that way too, though what we do in this video is better in terms of preventing an integer overflow: stackoverflow.com/questions/25113506/why-m-l-r-l-2-instead-of-m-lr-2-avoid-overflow-in-c.
@maven54632 жыл бұрын
@@PortfolioCourses oh, understood now. The video was so helpful! 😄 Thank you.
@PortfolioCourses2 жыл бұрын
You’re welcome! :-)
@CSstudent_1001 Жыл бұрын
Thank u a lot 🌸
@PortfolioCourses Жыл бұрын
Your very welcome! :-)
@idanmariani86012 жыл бұрын
your awsome :)
@PortfolioCourses2 жыл бұрын
Aww thank you Idan! :-)
@haniforange10 ай бұрын
2 hours before final exam wish me luck
@PortfolioCourses10 ай бұрын
Good luck! :-)
@duck_roster10 ай бұрын
Lol sameeee 🫣
@softvampir36 ай бұрын
Watching this video for class - please please turn on subtitles at least auto subtitles it takes no work and saves many people who are watching.
@PortfolioCourses6 ай бұрын
The video does have auto subtitles, you just have to click the gear icon in the top-right to enable them. :-)
@softvampir36 ай бұрын
@@PortfolioCoursesNo actually when I click the gear icon I see: "Stable Volume" ; "Ambient Mode" ; "Playback speed" ; and "Quality" there is no closed captions or subtitles on the gear icon. Next to the gear icon on the left is "cc" button which is greyed out and when I hover over it the message reads -> "Subtitles/closed captions unavailable".
@PortfolioCourses6 ай бұрын
Weird, what type of device/software are you using? I'm using Firefox on MacOS. I'm thinking it could be a difference related to using web vs. app or something like that.
@SurajBhandari-px1rv6 ай бұрын
@@PortfolioCoursesIts not available in my device too
@PortfolioCourses6 ай бұрын
What type of device are you using?
@Aaron-hh8nx Жыл бұрын
#include using namespace std; int main() { int LIST[25],MAX; int FIRST, LAST, MIDDLE, I, ITEM, LOC=-1; coutMAX; cout
@PortfolioCourses Жыл бұрын
That looks like the correct C++ solution to me. :-) Maybe I should make a C++ version of this video too though, that would be fun.
@Aaron-hh8nx Жыл бұрын
@@PortfolioCourses please do, it's from my school text book