Leetcode 15. 3Sum
Leetcode 15번 문제 3Sum 을 풀어보겠습니다. 이번 3Sum 문제는 중 난이도 로 릿코드 1번 문제인 투썸과 비슷하지만 3개의 숫자의 합이 0이 되는 배열을 리턴해야 하는 문제입니다. 문제설명 먼저 릿코드에서의 문제 설명을 살펴보겠습니다. Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain duplicate triplets. Example 1: Input: nums = [-1,0,1,2,..
2023. 1. 22.