Articles in this series
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each...
You are given an array prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profit by choosing a single day...
Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct. Example 1:...
Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The...
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum. A subarray is...
Given an integer array nums, find a contiguous non-empty subarray within the array that has the largest product, and return the product. The test...