热门标签
更多>
搜索结果
查询Tags标签: curRow,共有 2条记录-
[简单] 118. 杨辉三角
https://leetcode-cn.com/problems/pascals-triangle/ 对,没有灵魂的代码:class Solution {public List<List<Integer>> generate(int numRows) {List<List<Integer>> a = new ArrayList<>();List<Integer> prevRow = new ArrayLi…
2022/4/4 6:20:26 人评论 次浏览 -
LeetCode6.Z字形变换 详解
LeetCode6.Z字形变换 题目描述 /*** 将一个给定字符串 s 根据给定的行数 numRows ,以从上往下、从左到右进行 Z 字形排列。* 比如输入字符串为 "PAYPALISHIRING" 行数为 3 时,排列如下:** P A H N* A P L S I I G* Y I R* 之后,你的输出需要从左往…
2021/5/7 10:26:32 人评论 次浏览