C++ Exercises: Data Structure I
Exercises: 448. Find 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.Solution: use set to record all numbers had showed and find the the rest disappeared numbers. Tips: you can also increase Read more…