摘要: 题目描述: 中文: 给定一个 m x n 的矩阵,如果一个元素为 0,则将其所在行和列的所有元素都设为 0。请使用原地算法。 英文: Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it 阅读全文
posted @ 2019-09-27 15:23 hehe哒 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 中文: 格雷编码是一个二进制数字系统,在该系统中,两个连续的数值仅有一个位数的差异。 给定一个代表编码总位数的非负整数 n,打印其格雷编码序列。格雷编码序列必须以 0 开头。 英文: The gray code is a binary numeral system where two s 阅读全文
posted @ 2019-09-27 15:12 hehe哒 阅读(406) 评论(0) 推荐(0) 编辑