IT/알고리즘90 34] Leetcode 1351. Count Negative Numbers in a Sorted Matrix Count Negative Numbers in a Sorted Matrix - 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 grid.size() vs grid[0].size() class Solution { public: int countNegatives(vector& grid) { int ans=0; for(int i = 0;i 2020. 7. 19. 33] Leetcode 1304. Find N Unique Integers Sum up to Zero Find N Unique Integers Sum up to Zero - 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: vector sumZero(int n) { vectorans; if(n%2 == 0){ for(int i = 1;i 2020. 7. 15. 32] Leetcode 807. Max Increase to Keep City Skyline https://leetcode.com/problems/max-increase-to-keep-city-skyline/ Max Increase to Keep City Skyline - 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 각 행과 열의 최댓값을 구하고 최대 increase할 수 있는 높이는 두 최댓값 중 작은 값이므로 두 값중 작은 값에서 기존 값을 더한 값들을 리턴한다. class Solution { public: int maxIncreaseKeeping.. 2020. 7. 12. 31] Leetcode 1512. Number of Good Pairs https://leetcode.com/problems/number-of-good-pairs/ Number of Good Pairs - 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 numIdenticalPairs(vector& nums) { int ans = 0; for(int i = 0;i 2020. 7. 12. 이전 1 ··· 12 13 14 15 16 17 18 ··· 23 다음