Ayush7614 / Daily-Coding-DS-ALGO-Practice

A open source project🚀 for bringing all interview💥💥 and competative📘 programming💥💥 question under one repo📐📐
https://daily-ds-algo.github.io/DS-Algo-Website/
MIT License
321 stars 474 forks source link

Wave array (Gfg) #1911

Open bindaldhara opened 3 years ago

bindaldhara commented 3 years ago

Question- Given a sorted array arr[] of distinct integers. Sort the array into a wave-like array and return it In other words, arrange the elements into a sequence such that arr[1] >= arr[2] <= arr[3] >= arr[4] <= arr[5].....

https://practice.geeksforgeeks.org/problems/wave-array-1587115621/1/?track=dsa-workshop-1-arrays&batchId=308

I would like to provide my c++ code for this question. The folder I will be adding my code-Gfg

Please assign me this under LGMSOC '21

Thank you

sonamgupta136 commented 3 years ago

@Amit366 please assign me this pblm.i would like to contribute in C++