LeetCode 278. First Bad Version

Description https://leetcode.com/problems/first-bad-version/description/ You are a product manager and currently leading a team to develop a new product. Unfortunately, the latest…

LeetCode 69. Sqrt(x) (Java)

Description https://leetcode.com/problems/sqrtx/description/ Implement int sqrt(int x). Compute and return the square root of x. x is guaranteed to be a non-negative integer. Example…

LeetCode 34. Search for a Range

Description https://leetcode.com/problems/search-for-a-range/description/ Given an array of integers sorted in ascending order, find the starting and ending position of a given…

LeetCode 35. Search Insert Position

Description https://leetcode.com/problems/search-insert-position/description/ Given a sorted array and a target value, return the index if the target is found. If not,…

LeetCode 4. Median of Two Sorted Arrays

Description https://leetcode.com/problems/median-of-two-sorted-arrays/ There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of…