Given an array of integers nums and an integer target, return indices of two numbers such that they add up to target.
Assume each input would have exactly one solution and you may not use the same element twice
Given an array of integers, find if the array contains any duplicates.
Your function should return true if any value appears at least twice in the array, return false if every element is distinct
nums2 Return True if the length of hash set is not equal to the length of nums
Given an array of nums of n integers where n > 1, return an array output such that output[i] is equal to the product of all the elements of nums except nums[i]
Still need to decide on a best solution for this
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Given an integer array nums, find a contiguous non-empty subarray within the array that has the largest product, and return the product.
It is guaranteed that the answer will fit in a 32-bit integer.
A subarray is a contiguous subsequence of the array.
Suppose an array of length n sorted in ascending order is rotated between 1 and n times. For example, the array nums = [0,1,2,4,5,6,7] might become:
[4,5,6,7,0,1,2] if it was rotated 4 times.
[0,1,2,4,5,6,7] if it was rotated 7 times.
Notice that rotating an array [a[0], a[1], a[2], …, a[n-1]] 1 time results in the array [a[n-1], a[0], a[1], a[2], …, a[n-2]].
Given the sorted rotated array nums of unique elements, return the minimum element of this array.
// will ignore the decimal valuehttps://leetcode.com/problems/search-in-rotated-sorted-array/
https://leetcode.com/problems/container-with-most-water/
https://leetcode.com/problems/3sum/
https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/