//url:https://leetcode.com/problems/toeplitz-matrix/description/
class Solution {
public:
bool isToeplitzMatrix(vector>& matrix) {
//左下部分验证
for(int i=0;i=matrix.size())
break;
cout<<”1:x=”<=matrix[0].size())
break;
cout<<”2:x=”<
- 本文作者: royalchen
- 本文链接: http://www.royalchen.com/2018/07/23/leetcode-766-toeplitz-matrix/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!