728x90 정렬1 [kotlin] leetcode - Squares of a Sorted Array 977. Squares of a Sorted Array : https://leetcode.com/problems/squares-of-a-sorted-array/ Squares of a Sorted Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com class Solution { fun sortedSquares(nums: IntArray): IntArray { for(i in 0 until nums.size){ nums[i] *= nums[i]; } va.. 2022. 4. 27. 이전 1 다음 728x90 반응형