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.
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 ...
You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of ....
Given two integer arrays nums1 and nums2, return an array of their intersection. Each element in the result must appear as many times as it ....
In MATLAB, there is a handy function called reshape which can reshape an m x n matrix into a new one with a different size r x c keeping its .........
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are .........
Given a string s containing just the characters '(', ')', '{', '}', '' and '', determine if the input string is valid.An input string is..............