6. ZigZag Conversion # 题目 # 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
https://leetcode.com/problems/zigzag-conversion/ "PAYPALISHIRING" row x 3 P A H N A P L S I I G Y I R */ function ZigZag() {} String.prototype.forEach = function(fn) { for (var i = 0; i < this.length; i++) { fn( this.charAt(i) ); } }; ZigZag.convert = functio...
Baozi Leetcode solution 6: ZigZag Conversion 2019-12-17 06:13 − Problem Statement The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to dis... 包子模拟面试 0 226 2019ICPC徐州站M题 2019-12-09 18:00 − 前天在复现...