Gist

Below you will find pages that utilize the term “Gist”
September 13, 2023
Search a 2D Matrix - LeetCode : Swift

Search a 2D Matrix - LeetCode You are given an m x n integer matrix matrix with the following two properties: …

September 12, 2023
Length of Last Word - LeetCode : Swift

Length of Last Word - LeetCode Given a string s consisting of words and spaces, return the length of the last word in the string. …

September 11, 2023
Roman to Integer - LeetCode : Swift

Roman to Integer - LeetCode Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. …

September 10, 2023
Remove Duplicates from Sorted Array II - LeetCode : Swift

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. …

September 9, 2023
Best Time to Buy and Sell Stock - LeetCode : Swift

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. …

September 8, 2023
Rotate Array - LeetCode : Swift

Rotate Array - LeetCode Given an integer array nums, rotate the array to the right by k steps, where k is non-negative. …

September 6, 2023
Remove Duplicates from Sorted Array - LeetCode : Swift

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. …

September 5, 2023
Remove Element - LeetCode : Swift

Remove Element - LeetCode Given an integer array nums and an integer val, remove all occurrences of val in nums in-place. …

September 4, 2023
Merge Sorted Array - LeetCode : Swift

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. …

September 3, 2023
Next Greater Element I - LeetCode : Swift

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. …

1 2 3 4 5