Hi Amit

Am I allowed to keep counters to count the number of 1's and 0s right?

The condition of not using extra memory is for the array!?

Regards
Ashutosh


2010/8/18 amit <amitjaspal...@gmail.com>

> you are given an array of integers containing only 0s and 1s. you have
> to place all the 0s in even position and 1s in odd position and if
> suppose no if 0s exceed no. of 1s or vice versa then keep them
> untouched. Do that in ONE PASS and WITHOUT taking EXTRA MEMORY.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> 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 algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to