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.
文章标签 系统 文章分类 JavaScript 前端开发
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】39. 组合总和
【LeetCode】705. 设计哈希集合
【LeetCode】706. 设计哈希映射
The string “
[LeetCode]ZigZag Conversion
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M