Search Insert Position - LeetCode Given a sorted array of distinct integers and a target value, return the index if the target is found. …
Find Peak Element - LeetCode A peak element is an element that is strictly greater than its neighbors. Given a 0-indexed integer array nums, find a peak element, and return its index. …
Search a 2D Matrix - LeetCode You are given an m x n integer matrix matrix with the following two properties: …
Length of Last Word - LeetCode Given a string s consisting of words and spaces, return the length of the last word in the string. …
Roman to Integer - LeetCode Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. …
Remove Duplicates from Sorted Array || - LeetCode Given an integer array nums sorted in non-decreasing order, remove some duplicates in-place such that each unique element appears at most twice. …
Best Time to Buy and Sell Stock - LeetCode You are given an array prices where prices[i] is the price of a given stock on the ith day. …
Rotate Array - LeetCode Given an integer array nums, rotate the array to the right by k steps, where k is non-negative. …
Remove Duplicates from Sorted Array - LeetCode Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. …
Remove Element - LeetCode Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. …