摘要:
问题: 对二维数组,对角线排序 Example 1: Input: mat = [[3,3,1,1],[2,2,1,2],[1,1,1,2]] Output: [[1,1,1,1],[1,2,2,2],[1,2,3,3]] Constraints: m == mat.length n == mat[ 阅读全文
摘要:
问题: 给定一个包含0的数组,对数组进行遇到0,则再输出一次,后续元素向后推移。 求的转换后的数组。 Example 1: Input: [1,0,2,3,0,4,5,0] Output: null Explanation: After calling your function, the inpu 阅读全文