in reply to Re: partition of an array
in thread partition of an array

splice could be used to create the partition but how to get the kind of partition which satisfies the mentioned conditions. Actually i m not able to find any algorithm to implement it.