You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Problem URL: https://leetcode.com/problems/first-bad-version/
8
+
* Difficulty: Easy
9
+
* Description: You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest version of your product fails the quality check. Since each version is developed based on the previous version, all the versions after a bad version are also bad.
10
+
* Suppose you have n versions [1, 2, ..., n] and you want to find out the first bad one, which causes all the following ones to be bad.
11
+
* You are given an API bool isBadVersion(version) which returns whether version is bad. Implement a function to find the first bad version. You should minimize the number of calls to the API.
* Problem URL: https://leetcode.com/problems/search-insert-position/
6
+
* Difficulty: Easy
7
+
* Description: Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
8
+
* You must write an algorithm with O(log n) runtime complexity.
0 commit comments