Skip to content

Ankit161001/Shinchans_Good_Array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Shinchans_Good_Array

My solution of Shinchan's good array in Java.

Shinchan's Good Array has the properties:

  • Odd elements are in sorted order.
  • Even elements are in sorted order.
  • Odd elements occupy odd positions.
  • Even elements occupy even positions.
  • It has equal number of odd and even elements.

The following code takes the length of the array and the elements of the array and prints the sorted array along with the number of swaps needed to convert the array into a good array.

About

My solution of Shinchan's good array in Java.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages