Missing Number: Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.
read moreMissing Number: Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array.
read moreLongest Consecutive Sequence: Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.
read moreFind the Duplicate Number: Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
read moreFind All Numbers Disappeared in an Array: Given an array nums of n integers where nums[i] is in the range [1,n], return an array of all the integers in the range [1,n] that do not appear in nums.
read moreFind All Duplicates In Array: Given an integer array nums of length n where all the integers of nums are in the range [1, n] and each integer appears once or twice, *return an array of all the integers that appears twice*.
read moreConvert 1D Array into 2D Array: You are given a 0-indexed 1-dimensional (1D) integer array original, and two integers, m and n.
read moreDon’t settle for anything less than the crown. Join our newsletter and become the King of Interviews! Click here to join now and get the latest updates.