"Coding is just like talking to a unknown girl. Once you talked to her with guts, the next time you'll never afraid",Really? Yes , try it Now !!!
Everything here is for education and learning purpose only , individual holds rights on outer posts/links etc.
Team Cracking The Code
An array is given consisting of real integers , can hav repeatative elements , Now u need to find K partitions whose union will hav all the elements of the array , but the intersection of any pair of cannot hav K elements in common.
Example:- Array- 1 1 2 2 3 1 4 3 5
For K=3 the partition are :- (1 2 3) (1 5 2) (1 4 3)
No comments :
Post a Comment