fbpx
  1. Tubelator AI
  2. >
  3. Videos
  4. >
  5. Science & Technology
  6. >
  7. Master Big-O Notation: Essential for Coding Interviews

Master Big-O Notation: Essential for Coding Interviews

Available In Following Subtitles
English
Variant 1
Posted on:
Video by: NeetCode
Learn the common Big O runtime complexities crucial for acing coding interviews. Access free code on NeetCode.io to prepare with Python, JavaScript, Java, and C++. Available courses on data structures and algorithms for beginners.
tubelator logo

Instantly generate YouTube summary, transcript and subtitles!

chrome-icon Install Tubelator On Chrome

Video Summary & Chapters

No chapters for this video generated yet.

Video Transcript

0:00
hey everyone welcome back and let's
0:02
write some more neat code today so today
0:04
I want to run through all the common Big
0:06
O runtime complexities that you'll need
0:09
for coding interviews and by the way all
0:11
of the code from this video will be
0:12
available for free on neetcode.io if
0:15
you're not familiar with it it's
0:16
basically a site that I created it's got
0:18
a ton of free content to help you
0:20
prepare for coding interviews including
0:22
code in Python JavaScript Java and C
0:25
plus and I've also started making
0:27
courses so far I completed the data
0:29
structures and algorithms for beginners
0:31
course and the advanced algorithms
0:33
course and I just started uploading the
0:35
system design for beginners course you
0:37
can use code neat for 10 off lifetime
0:40
access that means you'll have lifetime
0:42
access to all current and future courses
0:45
so first of all what even is Big O time
0:48
complexity well it's basically a way of
0:50
analyzing the run time the amount of
0:52
time it takes for our algorithm to
0:54
execute as the input size of our
0:57
algorithm grows typically we can expect
0:59
as the input what size of our algorithm
1:01
grows the execution time of the
1:03
algorithm is also going to grow but it
1:05
could grow linearly which you know this
1:07
is a function you might be familiar with
1:09
we're used to Y equals X in terms of Big
1:12
O this is represented as Big O of n
1:15
where n is just a single variable that's
1:17
our x-axis now this is where we take a
1:20
different turn from algebra you could
1:21
have another function like this which is
1:23
for example n divided by 2 but we
1:25
actually don't care about the
1:28
differences when those differences are
1:30
constant values we only care about the
1:32
variable here which is n we don't care
1:34
about the divided by two and that's true
1:36
for all Big O run times we also don't
1:38
care if you know we have n plus some
1:41
constant like five like that might look
1:43
something like this on our chart it just
1:45
starts at a different spot and has the
1:47
same exact slope but we don't care about
shape-icon

Download extension to view full transcript.

chrome-icon Install Tubelator On Chrome