string
-
2021-01-28] Smallest String With A Given Numeric ValueIT/자기계발 ( Leetcode ) 2021. 1. 29. 00:10
오늘의 문제: leetcode.com/explore/challenge/card/january-leetcoding-challenge-2021/582/week-4-january-22nd-january-28th/3619/ 주어지는 n,k로 문자열을 만들어 주는 문제이다. 문자열의 법칙은 아래 예시를 보며 이해해보자. 예시 1번을 보면 n은 3 , k는 27이다. n은 문자열의 길이를 말하는 것이고, k는 이로 만들수 있는 사전정렬(알파벳순)의 가장 앞 순서의 문자열을 말하는 것이다. 문제에서 처럼 a=1,b=2,c=3 ..... z=26의 숫자를 갖는다. 총 알파벳이 26자이기 때문이다. k= 27일때 3개의 수로 표현한다면, 1+1+25가 될 수 있다. 물론 1+2+24 등도 되지만, 앞에 제약조건으로 사전..
-
2021-01-09] Check If Two String Arrays are Equivalent & Duplicate ZerosIT/자기계발 ( Leetcode ) 2021. 1. 9. 00:00
오늘의 문제: leetcode.com/problems/check-if-two-string-arrays-are-equivalent/ Check If Two String Arrays are Equivalent - 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 leetcode.com/problems/duplicate-zeros/ Duplicate Zeros - LeetCode Level up your coding skills and quickly land a job...