알고리즘
[LeetCode] 1. Two Sum 문제 풀이
1. Two Sum (https://leetcode.com/problems/two-sum/) Step1. 문제 이해하기 Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. 정수 배열 nums와 정수 target이 주어지면, 두 수를 더하여 target을 만들 수 있는 두 숫자의 인..
2023. 4. 19. 14:27