알고리즘 문제풀이/[C++] Leetcode
Leetcode 문제 1051번 Height Checker
문제 출처:https://leetcode.com/problems/height-checker Height Checker - 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 heightChecker(vector& heights) { int answer = 0 ; vector sorted_heughts(heights) ; sort(sorted_heughts.begin(), sorted_heug..