well we can take anything as he stated in any order On Fri, Aug 19, 2011 at 9:49 PM, Abhishek Yadav <[email protected]>wrote:
> Hey try queue instead of stack > > > On Fri, Aug 19, 2011 at 9:47 PM, sagar pareek <[email protected]>wrote: > >> 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 <[email protected]>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 [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. >>> >> >> >> >> -- >> **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 [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. > -- **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 [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.
