Find All Numbers Disappeared in an Array
Given an array nums of n integers where each integer is in the range , return an array of all the integers that do not appear in the array, sorted…
Master C, C++, Data Structures, Algorithms, Design Patterns, and More!
Given an array nums of n integers where each integer is in the range , return an array of all the integers that do not appear in the array, sorted…
Given an array nums of n integers where each integer is in the range , return an array of all the integers that appear more than once in the array,…
Given an unsorted integer array nums, find the smallest missing positive integer.
Given an array arr of positive integers sorted in ascending order, and an integer k, find the kth positive integer that is missing from the array.
Given an array of integers nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order…
Given a character array s, reverse the order of its elements in-place.
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Modify the array in-place with…
Given an array nums and a value val, remove all instances of that value in-place and return the new length of the array. Do not allocate extra space for another…
Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length. Do not allocate extra space for another array. Modify…