16. 3Sum Closest
https://leetcode.com/problems/3sum-closest 3Sum Closest - 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 난이도 : medium 문제 target 가 가까운 3 정수의 합을 구하여라 INPUT 이 1000 이라서 삼중 반복문으로도 풀린다. 하지만 그이상에 INPUT 이 들어온다면 투포인터로 접근해야 한다. 코드 브루스 포스 풀이 class Solution { public: int threeSumClosest(vecto..
Developer/LEETCODE
2021. 9. 4. 11:18