Use a trick, actually we just follow the zigzag move our current position, but we can use string to make a trick in the implement: every time we append the element to each string which corresponding to each row.
leetcode-6-ZigZag Conversion
最新推荐文章于 2019-04-19 15:50:09 发布