The main idea of this question is *not to change order of occurrence".Dutch 
National flag & other swapping like quick sort will change the order of 
occurrence of number
try yourself with simple example for proof.


________________________________
 From: Ravi Ranjan <[email protected]>
To: [email protected] 
Sent: Friday, 29 June 2012 3:06 PM
Subject: Re: [algogeeks] MS Question: Segregrate positive and negative nos in 
array without changing order
 

one can modify dutch national flag algo for two colors(2 types positive n 
negative)

-- 
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.

-- 
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.

Reply via email to