Notice
Recent Posts
Recent Comments
Link
반응형
목록Code (1)
개발에 AtoZ까지
[JAVA][Array] TwoSum
1. 문제 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Example: Given nums = [2, 7, 11, 15], target = 9, Because nums [0] + nums [1] = 2 + 7 = 9, return [0, 1]. 2. 문제해설 target의 숫자를 nums 배열에 있는 숫자 2개의 합으로 만들 수 있는데 어느 인덱스에 있는 숫자를 활용해야 ..
코딩테스트 준비/기타문제
2021. 1. 26. 13:12