DEV Community

Discussion on: Crushing Job Interviews(DSA) - Sorted Squared Arrays

Collapse
 
jonrandy profile image
Jon Randy 🎖️

Am I missing something? You don't need to sort the final array if the initial array was already sorted (unless it contained negative values, but you problem definition does not mention this in any way)

Collapse
 
dhruvindev profile image
Dhruvin

correct, the issues is negative values, I'm working to include multiple next next post onwards. Sorry for the misunderstanding on this one