traverse the list and print only odd numbers and if even number encounter
store it in a stack and later on print it

On Fri, Aug 19, 2011 at 9:29 PM, sukran dhawan <sukrandha...@gmail.com>wrote:

> There is a Circular Singly Linked List with n nodes having sorted values
> from 1 to n. Need to print the odd and even numbers in groups in a single
> traversal.
> Eg. Input: 1->2->3->4->5->6->1 Output: {Any combination of Odd Nos} {Any
> combination of Even Nos} Eg. 1 3 5 6 4 2..... write a program for same?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@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.
>



-- 
**Regards
SAGAR PAREEK
COMPUTER SCIENCE AND ENGINEERING
NIT ALLAHABAD

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@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