LeetCode #448

열수철·2024년 8월 26일
  1. 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.

--> 주어진 nums 배열의 각 nums[i](임의의 i는)는 모두 1, n 사이에 존재한다.
--> 구해야되는 답 : [1, n] 범위에 존재하는 수 중 주어진 nums 배열에 포함되지 않는 원소를 모두 구해라

1 Arrays with Counting Sort

2 Using the plus-minus sign

profile
그래픽스, 수학, 물리, 게임 만세

0개의 댓글