Re: [algogeeks] BST to DLL code: whats wrong with this code........

2012-09-03 Thread nikki
Sorry by mistake i write that

Actually I am not getting desired output..

On Mon, Sep 3, 2012 at 11:02 AM, manish untwal wrote:

> if u r getting desired output ? then what is the problem?
>
>
> On Sun, Sep 2, 2012 at 7:24 PM, shubham jain wrote:
>
>> Hi
>> I am trying to convert the BST to doubly linked list but I  am  getting
>> desired output with this code Plz correct this code.
>>
>> #include
>> #include
>> typedef struct tree mytree;
>> struct tree
>> {
>>int data;
>>mytree* left;
>>mytree* right;
>> };
>>
>> void insert(mytree** root,int data)
>> {
>>   if(*root==NULL)
>>   {
>>   mytree* node=(mytree*)malloc(sizeof(mytree));
>>   if(node==NULL)
>>   return;
>>   else
>>   {
>> node->data=data;
>> node->left=NULL;
>> node->right=NULL;
>>   }
>>
>>   *root=node;
>> return;
>>   }
>>   else
>>   {
>>  if((*root)->data >=data)
>>insert(&(*root)->left,data);
>> else
>>insert(&(*root)->right,data);
>>   }
>> }
>>
>> void traverse(mytree* ptr)
>> {
>>   if(ptr==NULL)  return;
>>   traverse(ptr->left);
>>   printf("%d\t",ptr->data);
>>   traverse(ptr->right);
>> }
>>
>> void traversell(mytree* ptr)
>> {
>>   if(ptr==NULL)  return;
>>   while(ptr!=NULL)
>>   {
>>   printf("%d\t",ptr->data);
>>   ptr=ptr->right;
>>   }
>>
>> }
>>
>> void bst22ll(mytree** tree,mytree** head)
>> {
>>static mytree* prev=NULL;
>>if(*tree==NULL)  return;
>>mytree* ptr=*tree;
>>if((*tree)->left!=NULL)
>>bst22ll(&(*tree)->left,head);
>>*tree=ptr;
>>if(*head==NULL)
>> {
>>   *head=*tree;
>>   (*head)->left==NULL;
>> }
>>else
>> {
>>   prev->right=*tree;
>>   (*tree)->left=prev;
>> }
>> prev=*tree;
>>
>>if((*tree)->right!=NULL)
>>  {
>>  bst22ll(&(*tree)->right,head);
>>  }
>> }
>>
>>
>>
>> void bst2ll(mytree** tree)
>> {
>>   if(tree==NULL)  return;
>>   mytree* head=NULL;
>>   mytree* prev=NULL;
>>   bst22ll(tree,&head);
>>   *tree=head;
>> }
>>
>> int main()
>> {
>> mytree* tree=NULL;
>> insert(&tree,50);
>> insert(&tree,40);
>> insert(&tree,60);
>> insert(&tree,30);
>> insert(&tree,70);
>> insert(&tree,65);
>> insert(&tree,45);
>> insert(&tree,34);
>> traverse(tree);
>> bst2ll(&tree);
>> printf("\n");
>> traversell(tree);
>> printf("\n");
>> }
>>
>>
>> should print : 30  34  40  45  50  60  65 70
>> but printing:   30  34  40  45  50  60  70
>>
>>
>> Thank you
>> Shubham
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/algogeeks/-/XXMvBSg0t08J.
>> 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.
>>
>
>
>
> --
> With regards,
> Manish kumar untwal
> Indian Institute of Information Technology
> Allahabad (2009-2013 batch)
>
>
>  --
> 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.
>

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



[algogeeks] oracle paper pattern.......................

2012-08-08 Thread nikki
Has anyone appeared for Yahoo recentlyplz tell the pattern of the paper

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



[algogeeks] Shopping For Jewelry For Her

2008-12-03 Thread Nikki Charm

Shopping For Jewelry For Her


If you would like to give a special woman in your life something
that she will really love, you'll find that every jeweler has something
to offer you. While there are probably millions of things that she will
love, you want to choose something that she is really going to love and
cherish. It can be difficult with so many options, but there are some
classics as well as some more unique things for you to buy her that she
is sure to be delighted with.
http://tinyurl.us/?f=42OU


Diamonds Are More Than Forever


Diamonds are the gift of love. Expensive diamonds are the gift
of good taste.
http://tinyurl.us/?f=5Q9B


Famous Jewellers


Tiffany's, Cartier, Bulgari - for those of us who are fascinated
by the allure of gold and platinum, diamonds and precious gemstones,
exquisite design and immaculate presentation, these are the names that
dreams are made of. In these austere times, just to think and read about
these famous jewellers and their wares brings us comfort, as we indulge
our fantasies and dream of better times in the past and in the future.
http://tinyurl.us/?f=OJWC

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~--~~~~--~~--~--~---



[algogeeks] Are Celebrity Cell Phone Numbers Available Online?

2008-12-02 Thread Nikki Charm

Are Celebrity Cell Phone Numbers Available Online?


With many celebrities having their own private cell phone
numbers, you can't help but wonder if your favorite celebrity's cell
phone number is listed on online databases. Basically, most prominent
personalities, such as celebrities, politicians, etc. will have their
own cell phone numbers. This will mean that they will also subscribe
with cell phone service providers, such as Sprint Mobile, T-Mobile,
Verizon, AT&T, and other service providers.
http://tinyurl.us/?f=PX5C


Top 3 Reverse Phone Number Search Sites


When you need to do a reverse phone number search to lookup any
type of phone number - including cell phone, unlisted, out of area,
residential, pager and fax numbers - the only way you can find these
numbers is by using online reverse phone search sites. There are many
sites that offer reverse searches, but they vary greatly with respect to
price, quality and free searches.
http://tinyurl.us/?f=LOMQ


Christmas Mobiles at Almost No Cost


During Christmas, one may avail of free gifts with mobile phones
and its various accessories. People get together during this festival,
exchange pleasantries and make the moments memorable.
http://tinyurl.us/?f=VWXU

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~--~~~~--~~--~--~---



[algogeeks] Resume Blunders - Tell the Truth About Your Degrees

2008-12-01 Thread Nikki Charm

Resume Blunders - Tell the Truth About Your Degrees


You're a few credits shy of your MBA, and you're tempted to go
ahead and list the degree as having been conferred on your resume. After
all, the company you're interested in says they won't even interview
anyone without an MBA; if you don't tell this white lie, it'll take a
miracle to even get your foot in the door.
http://tinyurl.us/?f=1NVK


Resume Writing - Can Software Make a Difference?


A resume builder (i.e., resume software) is simply an
interactive tool to help you craft your own resume. If you can compose a
straightforward sentence and follow step-by-step instructions, you can
write a professional-looking resume yourself - with help from a good
resume builder. But how do you find a good one? Here's help.
http://tinyurl.us/?f=DTWT


9 Great Resume Writing Tips


These 9 Great Resume writing Tips will secure the interviews YOU
want. Because you MUST have a Resume that gets you the interview.
http://tinyurl.us/?f=7I38

 


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~--~~~~--~~--~--~---