uacs2024

导航

2025年11月13日 #

leetcode6. Z 字形变换

摘要: 6. Z 字形变换 法一:一开始自己写的史山代码. class Solution { public String convert(String s, int numRows) { if(numRows == 1) return s; ArrayList<char[]> zConvert = new 阅读全文

posted @ 2025-11-13 22:31 ᶜʸᵃⁿ 阅读(7) 评论(0) 推荐(0)

leetcode73. 矩阵置零

摘要: 73. 矩阵置零 法一:和零的数量相关的额外数组 202209写的c++代码 class Solution { public: void setZeroes(vector<vector<int>>& matrix) { int size1=matrix.size(),size2=matrix[0]. 阅读全文

posted @ 2025-11-13 15:04 ᶜʸᵃⁿ 阅读(4) 评论(0) 推荐(0)