🖼️ALGORITHM/🧩LEETCODE1 LeetCode75 : Merge Strings Alternately (Lv. Easy) - JAVA ** ⬇️문제⬇️You are given two strings word1 and word2.Merge the strings by adding letters in alternating order, starting with word1.If a string is longer than the other, append the additional letters onto the end of the merged string. Return the merged string. 간단하게 요약해보면 word1 과 word2가 인풋값으로 들어왔을 때 먼저 입력받는 인풋값으로 시작해서 char별로 번갈아서 출력하는데 길이가 긴 인풋값은 길이가 짧은 인풋값과 번갈아서 출력된 값 뒤에 나머지 값을 출력하도록 코드를 짜면 되는.. 2024. 10. 23. 이전 1 다음