FIRST BAD VERSION | LEETCODE 278 | PYTHON BINARY SEARCH SOLUTION

Опубликовано: 02 Октябрь 2024
на канале: Cracking FAANG
1,181
30

Channel Discord Community:   / discord  

Problem Link: https://leetcode.com/problems/first-b...

Today we are solving a question that is fantastic for learning Binary Search. it's First Bad Version (Leetcode 278). This question is great because it's very easy intuition wise and it exposes us to a different variation of binary search where we want to move our pointers and ultimately return one of them instead of returning from inside the binary search.

TIMESTAMPS
00:00 Intro
00:08 Question Prompt
00:40 Basic Example
01:40 Solution Intuition
03:31 Coding
07:05 Time/Space Complexity
07:35 Outro