Programming-Basics

Below you will find pages that utilize the term “Programming-Basics”
September 15, 2023
Search Insert Position - LeetCode : Swift

Search Insert Position - LeetCode Given a sorted array of distinct integers and a target value, return the index if the target is found. …

September 14, 2023
Find Peak Element - LeetCode : Swift

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

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

Prev 1 2 3