1. Two Sum
https://leetcode.com/problems/two-sum/ Two Sum - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 난이도 : easy 문제 덧셈하여 타겟을 만들 수 있는 배열의 두 숫자 인덱스를 리턴하라 정수형 원소로 두개의 합의 target 과 같다면 해당 원소의 index 반환 하여 풀이 하면 된다. 1. map 을 선언하고 key 를 배열의 값 value 를 인덱스로 삽입한다. 2. 반복문을 순회하면서 target 을 배열의 값으로 뺄셈..
Developer/LEETCODE
2021. 9. 4. 11:31