문제풀이3 11] Leetcode 1295. Find Numbers with Even Number of Digits 숫자들 중에 짝수 자릿수인 숫자의 개수를 반환하는 문제. Find Numbers with Even Number of Digits - 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 findNumbers(vector& nums) { int ans = 0; int sth =0; for(int i = 0; i 2020. 6. 24. 4] Leetcode 1108. Defanging an IP Address 숫자와 .으로 구성된 문자열이 주어졌을 때 . 앞뒤로 []를 넣어주는 문제. Defanging an IP Address - 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: string defangIPaddr(string address) { string ans; for(int i = 0;i 2020. 6. 21. 1] Leetcode 1480. Running Sum of 1d Array Running Sum of 1d Array - 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 runningSum(vector& nums) { for(int i=1;i 2020. 6. 16. 이전 1 다음