Longest Consecutive Sequence: Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.
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 moreContains Duplicate: 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.
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.