摘要: public class Solution { public int MonotoneIncreasingDigits(int N) { var num = N.ToString(); var len = num.Length; if (len == 1) { ... 阅读全文
posted @ 2018-10-09 20:40 Sempron2800+ 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 利用数学公式解题。 阅读全文
posted @ 2018-10-09 15:22 Sempron2800+ 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 本题使用贪心算法思想,这里给出的代码是比较高效的一种解法。 阅读全文
posted @ 2018-10-09 12:13 Sempron2800+ 阅读(121) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public int MatrixScore(int[][] A) { var row = A.GetLength(0); var col = A[0].GetLength(0); //判断最高位是否为1 for ... 阅读全文
posted @ 2018-10-09 11:31 Sempron2800+ 阅读(124) 评论(0) 推荐(0) 编辑