First Bad Version

Опубликовано: 15 Декабрь 2024
на канале: PyTech Vision
445
4

First Bad Version (LeetCode) solution, this problem is posted as Day 1 problem of May LeetCoding Challenge on LeetCode.
Explained the algorithm with log(n) complexity.
The same problem can also be re framed as finding occurrence of first '1' in sorted array consisting of '0' and '1' only. This question is very commonly asked in Programming Interview.

#LeetCode
#ProblemSolving
Author : Shahrukh Khan
Links
Blog : https://pytech-solution.blogspot.com/