
[LeetCode/easy] TwoSum
·
알고리즘/LeetCode
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 두 개의 원소 합이 target인 원소의 인덱스를 출력하는 문제 #include #include #include #include using namespace std; bool compare(pair a, pair b){ return a.second < b.second; } int main(){ ios::sync_with_stdio..