6. Z 字形变换

numRows 个 StringBuilder 模拟锯齿形。

难度:中等。题型:Simulation。

标签:字符串

逐行拼接:cur 上下方向扫描。 时间复杂度 O(n),空间复杂度 O(n)。