leetcode977

public class Solution {
    public int[] SortedSquares(int[] A) {
        return A.Select(x => x * x).ToList().OrderBy(x => x).ToArray();
    }
}
原文地址:https://www.cnblogs.com/asenyang/p/10302219.html