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. …
Merge Sorted Array - LeetCode You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and nums2 respectively. …
Next Greater Element I - LeetCode The next greater element of some element x in an array is the first greater element that is to the right of x in the same array. …