448 Find All Numbers Disappeared in an Array LeetCode (Google Interview Question) JavaScript

preview_player
Показать описание
448 Find All Numbers Disappeared in an Array LeetCode (Google Interview Question) JavaScript

"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."

Final code:

Gear I use:
Рекомендации по теме
Комментарии
Автор

Read the description, O(1) space and O(n) time, thats why it's google interview question. U solve it with O(n) space

pavuk