알고리즘 문제풀이/[C++] Leetcode
Leetcode 문제 682번 Baseball Game
문제 출처:https://leetcode.com/problems/baseball-game/ Baseball Game - 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 코드는 다음과 같습니다: class Solution { public: int calPoints(vector& ops) { vector v; for (const auto& op : ops) { if (op == "+") { v.emplace_back(v[v.size() - 2] + v.back());..