Back to Freecodecamp

Determining Complexity

curriculum/challenges/english/blocks/time-complexity/determining-complexity-video.md

latest289 B
Original Source

--description--

In this video, you will learn how to determine the worst case complexity for an algorithm.

--questions--

--text--

What is the worst case runtime for binary search?

--answers--

O(n)


O(log n)


O(1)


O(n log n)

--video-solution--

2