摘要: 1 """ 2 Given an array of non-negative integers, you are initially positioned at the first index of the array. 3 Each element in the array represents 阅读全文
posted @ 2020-03-13 22:32 yawenw 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. 3 Example 1: 4 Input: 5 [ 6 [ 1, 2, 3 阅读全文
posted @ 2020-03-13 21:11 yawenw 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1 """ 2 Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: 3 Each row must contain 阅读全文
posted @ 2020-03-13 11:15 yawenw 阅读(195) 评论(0) 推荐(0) 编辑