반응형 leetcode1 [JavaScript] ZigZag Conversion - Leetcode 오늘은 Leetcode에 있는 ZigZag Conversion 문제를 풀어봤습니다. 자세한 문제설명은 아래 링크를 참조해주세요. https://leetcode.com/problems/zigzag-conversion/description/ P A H N A P L S I I G Y I R And then read line by line: "PAHNAPLSIIGYIR" Write the code that will take a string and make this conversion given a number of rows: string convert(string s, int numRows); Example 1: Input: s = "PAYPALISHIRING", numRows = 3 Output: "PAHN.. 2024. 3. 19. 이전 1 다음 반응형