JAVA_Squares of a Sorted Array_LeetCode 977 풀이 class Solution { public int[] sortedSquares(int[] nums) { return Arrays.stream(nums).map(i -> i * i).sorted().toArray(); } } * 출처 https://leetcode.com/problems/squares-of-a-sorted-array/ Squares of a Sorted Array - LeetCode Can you solve this real interview question? Squares of a Sorted Array - Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Example 1: Input: n...
#JAVA
#JAVA_LeetCode977
#JAVA_SquaresofaSortedArray
#JAVA_SquaresofaSortedArray_LeetCode977
#SquaresofaSortedArray_LeetCode977
원문링크 : JAVA_Squares of a Sorted Array_LeetCode 977