[릿코드 1] Two Sum (파이썬/python)
2022. 6. 15.
https://leetcode.com/problems/two-sum/submissions/ 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 간단한문제, 두개의 수를 더해서 target 의 숫자가 나오면 그 두 수의 리스트 인덱스를 반환해주면된다. from typing import List class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: for i in ran..