Google-Developer-Student-Club-CCOEW / Competitive-Programming-2023-GDSC-CUMMINS-X-GDSC-MMCOE

Welcome to the Hacktoberfest 2023 Competitive-Programming Cohort for Cummins College and MMCOE students! To request issue assignment, create a pull request, providing: 1. Full Name 🧑‍🎓 2.Email 📧 3.College ID (RNO) 🔢 4.Branch of Study.📚 5. Year 📆 .The Cummins College and MMCOE students' PRs will be considered only. Thank you!
9 stars 69 forks source link

Issue #4 : Squares of a Sorted Array #224

Closed srushtikage closed 11 months ago

srushtikage commented 11 months ago

4

I have first squared every element of the array in place & then have sorted the array in non-decreasing order.

Time Complexity : O(n log n) Space Complexity : O(1)