摘要:
补充一个python的实现: 阅读全文
摘要:
public class Solution { public IList PowerfulIntegers(int x, int y, int bound) { var list = new List(); for (int i = 0; i a).ToList(); ... 阅读全文
摘要:
public class Solution { public int LargestPerimeter(int[] A) { var list = A.OrderByDescending(x => x).ToList(); var length = list.Count; if (le... 阅读全文
摘要:
public class Solution { public int[] SortedSquares(int[] A) { return A.Select(x => x * x).ToList().OrderBy(x => x).ToArray(); } } Java版代码: 1 class Sol 阅读全文
摘要:
public class POINT { public int X; public int Y; public int Z; } public class Solution { public int[][] KClosest(int[][] points, int K) { ... 阅读全文