摘要: 补充一个python的实现: 阅读全文
posted @ 2019-01-22 11:38 Sempron2800+ 阅读(100) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public IList PowerfulIntegers(int x, int y, int bound) { var list = new List(); for (int i = 0; i a).ToList(); ... 阅读全文
posted @ 2019-01-22 11:02 Sempron2800+ 阅读(119) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public int LargestPerimeter(int[] A) { var list = A.OrderByDescending(x => x).ToList(); var length = list.Count; if (le... 阅读全文
posted @ 2019-01-22 10:25 Sempron2800+ 阅读(91) 评论(0) 推荐(0) 编辑
摘要: public class Solution { public int[] SortedSquares(int[] A) { return A.Select(x => x * x).ToList().OrderBy(x => x).ToArray(); } } Java版代码: 1 class Sol 阅读全文
posted @ 2019-01-22 10:06 Sempron2800+ 阅读(80) 评论(0) 推荐(0) 编辑
摘要: public class POINT { public int X; public int Y; public int Z; } public class Solution { public int[][] KClosest(int[][] points, int K) { ... 阅读全文
posted @ 2019-01-22 09:55 Sempron2800+ 阅读(114) 评论(0) 推荐(0) 编辑