Loading

摘要: 题目 代码class Solution {public: vector findDiagonalOrder(vector>& matrix) { //判断是否为空 if(matrix.empty()) return {}; ... 阅读全文
posted @ 2019-02-10 23:29 李正浩 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 题目 代码 class Solution {public: vector spiralOrder(vector>& matrix) { if (matrix.empty() || matrix[0].empty()) return {}; i... 阅读全文
posted @ 2019-02-10 22:50 李正浩 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 题目 代码class Solution {public: int dominantIndex(vector& nums) { vector sortedNums=nums; std::sort(sortedNums.begin(),sort... 阅读全文
posted @ 2019-02-10 21:48 李正浩 阅读(283) 评论(0) 推荐(0) 编辑