977. 有序数组的平方
摘要:
sort 一下 class Solution { public: vector<int> sortedSquares(vector<int>& nums) { vector<int> ret; for(int num : nums){ ret.push_back(pow(num, 2)); } so 阅读全文
posted @ 2024-09-08 16:47 神奇的萝卜丝 阅读(12) 评论(0) 推荐(0)
浙公网安备 33010602011771号