[LeetCode] 66. Plus One 풀이 (JS)
0. 문제 https://leetcode.com/problems/plus-one/ Plus One - 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 각 자릿수가 배열로 주어진 하나의 수에 1을 더한 값을 각 자릿수 배열로 반환하는 문제 ex : [9, 9, 9] → 999 + 1 = 1000 → [1, 0, 0, 0] #1 Input: digits = [1,2,3] Output: [1,2,4] #2 Input: digits = [4,3,2,1] Output: [..
2022. 7. 17.