Category: leetcode online judge
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the …
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, and it …
Given an array of n integers where n > 1, nums, return an array output such that output is equal to the product of all the elements of nums …
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only …
You are given an array x of n positive numbers. You start at point (0,0) and moves x metres to the north, then x metres to the west, x …