23.04.18. 문제 해결
Leetcode 1768. 교대로 문자열 병합 두 개의 문자열을 하나의 인덱스로 결합하는 문제입니다. 병합 정렬을 알면 병합 방식으로 쉽게 구현할 수 있습니다. // Runtime 2 ms Beats 50.88% // Memory 6.5 MB Beats 19.57% class Solution { public: string mergeAlternately(string word1, string word2) { int i = 0, j = 0, len1 = word1.length(), len2 = … Read more