Algo_ds_101: Wave_Sort

Created on 10 Oct 2020  路  7Comments  路  Source: ahampriyanshu/algo_ds_101

Submission Title
Wave Sort an Array

Submission Type
Algorithm

Submission Description
Given an array of integers, sort the array into a wave like array, i.e,
arrange the elements into a sequence such that a1 >= a2 <= a3 >= a4 <= a5 >= a6 and so on.
A pet question of big tech, asked in Google, Adobe, etc. It's a great algo to test how you can solve a seemingly complicated problem creatively with some very fundamental algos.

Submission Directory
Algorithms => Sorting_Algorithms => Wave_Sort => Wave_Sort.ext

Contributors

  • [x] C++ -
  • [x] C -
  • [x] Python -
  • [ ] Java -
  • [ ] JavaScript -
  • [ ] TypeScript -
  • [ ] Golang -
  • [ ] Ruby -
  • [ ] php -
  • [ ] Swift -
  • [ ] C# -
C# Hacktoberfest New Submssion TypeScript first timer good first issue java javascript php ruby scala swift

All 7 comments

馃憢 @${author}

Thanks for opening your first issue here! Be sure to follow the issue template!

Regards @ahampriyanshu :v:

Please Assign this to me in python

Please assign this to me in C++

Please assign this to me in C.

@ahampriyanshu i can do the c implementation of wave sort

Hi @RitayanDas2 :wave:,
Please opt a different language/issue.

thanks everyone :v:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahampriyanshu picture ahampriyanshu  路  5Comments

ahampriyanshu picture ahampriyanshu  路  5Comments

aakashsoni-cloud picture aakashsoni-cloud  路  3Comments

jindalsachin picture jindalsachin  路  5Comments

Nirali0029 picture Nirali0029  路  4Comments