First bad version | Leetcode

Описание к видео First bad version | Leetcode

This video explains a very important searching algorithm problem which is to find the first bad version in an array. We are not actually given the array but we can make API calls to find a particular array element is good or bad. Our goal is to minimize the API calls and find out the first bad version from left. I have shown the solving idea, intuition and similar problem which will help this solve this problem. I have shown proper example and solved it using binary search. The end of the video contains CODE explanation for the algorithm and CODE LINK is given below as usual. If you find any difficulty or have any query then do COMMENT below. PLEASE help our channel by SUBSCRIBING and LIKE our video if you found it helpful...CYA :)


CODE LINK: https://gist.github.com/SuryaPratapK/...


SIMILAR PROBLEM:-
Search in rotated sorted array:    • Search in rotated sorted array | Leet...  

Комментарии

Информация по комментариям в разработке