Steps to follow: 1.Sort the given array. 2.Partition each consecutive element in 2 arrays i.e. if 1st element is in 1st array then second will be 2nd array and 3rd in 1st.
But for equal no. of elements you have to check for no. of elements in the array. If they are odd either insert a dummy elemnt of value 0 else output an error message (whatever you feel better). -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
