Back to Browse

Leetcode | 35. Search Insert Position | Java | C#

470 views
Oct 15, 2020
4:53

Leetcode | 35. Search Insert Position | Java | C# 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. Example 1: Input: nums = [1,3,5,6], target = 5 Output: 2 Example 2: Input: nums = [1,3,5,6], target = 2 Output: 1

Download

1 formats

Video Formats

360pmp46.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Leetcode | 35. Search Insert Position | Java | C# | NatokHD