![Leetcode#4_ZigZag Convention_05wk02 by SOMJANG 포스팅 썸네일 이미지](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Feu02y6%2FbtqD7XrjPRd%2FGVR1GXO8V2fWOIrH5GK6YK%2Fimg.png)
우리가 공부한 것 들/알고리즘
Leetcode#4_ZigZag Convention_05wk02 by SOMJANG
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) 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 = "PA..