Squares of sorted array Leetcode C++

preview_player
Показать описание
Given an integer array, nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.
Рекомендации по теме
Комментарии
Автор

in love with you and your videos alisha🥰🥰

arnab_
Автор

Hey i was using the same algo myself and but was reinserting the right squares into their right indexes but using the same nums vector (you used a seperate new vector here) but i was getting a error..can you please explain why is that

mellowftw
welcome to shbcf.ru