Must-Know JavaScript Algorithms for Beginners || Big O Notation

  Рет қаралды 4,289

DoableDanny

DoableDanny

3 жыл бұрын

If you want to become a developer, then you need to be able to come up with solutions to problems. In this series I teach the algorithms that you'll be expected to know. This video introduces Big O notation in JavaScript. Big O Notation is a crucial topic to understand to ensure that you don't write an inefficient function at the wrong time!
I also wrote a super in-depth Big O article where everything is explained so anyone can follow along: www.doabledanny.com/big-o-not...
Subscribe to my channel: / @doabledanny
Follow me on twitter: / doabledanny

Пікірлер: 20
@CodingJourney20
@CodingJourney20 8 ай бұрын
Very nice, thank you ✅
@nancyalday296
@nancyalday296 2 жыл бұрын
Thanks for your very clear explanation!
@Anders.B.
@Anders.B. 3 жыл бұрын
Yes, thank you for making it visual! I've heard about Big O from podcasts and I knew the big picture of if, but it was very helpful to see some examples of it.
@doabledanny
@doabledanny 3 жыл бұрын
Thanks Anders! So glad it was of good use to you :)
@dominicdoyle2895
@dominicdoyle2895 2 жыл бұрын
Excellent explanation. Thank you sir
@doabledanny
@doabledanny 2 жыл бұрын
You're welcome :)
@mazadesigndev295
@mazadesigndev295 3 жыл бұрын
Very simple, clear on explanation and helpful. I have learned the Big O before, however, this has ticked the box for me as the examples have made a big difference when it comes to understanding the concepts. Thank you for explaining this and keep it up :)
@doabledanny
@doabledanny 3 жыл бұрын
Wow, thanks for the kind words Madalena! So glad you found it helpful :)
@svejdam7106
@svejdam7106 3 жыл бұрын
Awesome bro! Nice explanation :)
@doabledanny
@doabledanny 3 жыл бұрын
Thanks Martin!!
@josue-cedeno
@josue-cedeno 3 жыл бұрын
This is a great explanation of Big O. I would really like to watch you explain the others.
@doabledanny
@doabledanny 3 жыл бұрын
Thanks Josue! Do you mean you'd like me explain the logarithmic big Os? I'd be happy to try to if so :)
@josue-cedeno
@josue-cedeno 3 жыл бұрын
@@doabledanny yes, that would be so helpful!
@doabledanny
@doabledanny 3 жыл бұрын
@@josue-cedeno Cool, I'll see what I can do!
@GaneshH
@GaneshH 3 жыл бұрын
Great Explanation of probably the most important concept in Algorithm Design! The array manipulation example is really nice :)
@doabledanny
@doabledanny 3 жыл бұрын
Thanks Ganesh mate! I'm surprised it's not covered on freeCodeCamp tbh, such an important concept to understand!
@kanavsethi5726
@kanavsethi5726 3 жыл бұрын
Interesting.... Though amazing video!
@doabledanny
@doabledanny 3 жыл бұрын
Thank you Kanav!
@geraldthomas1364
@geraldthomas1364 Жыл бұрын
3:20 I don't understand how the time complexity here is 2n. If you're iterating through the input array once obviously that's linear dependent on the size of the input arr but to get to 2n I'm assuming you're implying there's another linear operation that was added to make it 2n but I don't see it. The other operation is pushing each value into the array called "newArr." But since each insertion is at the end of the array thus we don't have to worry about changing any of the indexes that were already in it, doesn't that make pushing into that array just 0(1) time complexity so it would make that algorithm 0(1) + O(n) which becomes O(n)? This question probably doesn't matter because I see how we both got to O(n) but since I'm learning I just want to make sure I got the process correct
@doabledanny
@doabledanny Жыл бұрын
Looping over the array will be n loops. Then, within that loop, we are pushing a value onto a new array; this will happen n times because it is within the loop. So n +n = 2n
Big-O Notation - For Coding Interviews
20:38
NeetCode
Рет қаралды 416 М.
Learn Big O Notation In 12 Minutes
12:18
Web Dev Simplified
Рет қаралды 182 М.
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 8 МЛН
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 20 МЛН
ОДИН ДЕНЬ ИЗ ДЕТСТВА❤️ #shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
Getting Sorted & Big O Notation - Computerphile
10:59
Computerphile
Рет қаралды 316 М.
Complete Beginner's Guide to Big O Notation
21:58
Colt Steele
Рет қаралды 227 М.
Big O Notation - Code Examples
15:18
Keep On Coding
Рет қаралды 102 М.
Binary Tree Algorithms for Technical Interviews - Full Course
1:48:53
freeCodeCamp.org
Рет қаралды 693 М.
What Is Big O Notation?
17:45
Reducible
Рет қаралды 310 М.
Fizzbuzz in JavaScript Explained Simply
6:34
DoableDanny
Рет қаралды 12 М.
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 8 МЛН