i think i already explained the logic initially :)

On Thu, Jun 14, 2012 at 9:30 PM, Hassan Monfared <hmonfa...@gmail.com>wrote:

> how can you pop from empty stack ?
> "  temp=pop(S); "
>
> Regards,
> Hassan
>
> On Thu, Jun 14, 2012 at 8:25 PM, Ashish Goel <ashg...@gmail.com> wrote:
>
>> Navin: copy pastes not encouraged till the logic is also clarified ;)
>>
>> Best Regards
>> Ashish Goel
>> "Think positive and find fuel in failure"
>> +919985813081
>> +919966006652
>>
>>
>> On Thu, Jun 14, 2012 at 7:25 PM, Sourabh Singh 
>> <singhsourab...@gmail.com>wrote:
>>
>>> @ Navin Kumar
>>>
>>> Nice . Solution.
>>> But
>>> your  function also make a stack only. so you are using a
>>> stack[internal] here.
>>> but may be this one is allowed    :-)
>>>
>>>
>>> On Thu, Jun 14, 2012 at 5:23 AM, Navin Kumar 
>>> <algorithm.i...@gmail.com>wrote:
>>>
>>>> void Reverse(struct Stack *S) {
>>>>     int data;
>>>>     if(IsEmptyStack(S)) return;
>>>>     data=pop(s);
>>>>     ReverseStack(S);
>>>>     InsertAtBottom(S, data);
>>>> }
>>>>
>>>> void InsertAtBottom(struct stack *S, int data)
>>>> {
>>>>    int temp;
>>>>    if(!IsEmptyStack(S)){
>>>>        push(S,data);
>>>>        return;
>>>>     }
>>>>    temp=pop(S);
>>>>    InsertAtBottom(S,data);
>>>>     push(S, temp);
>>>>
>>>> }
>>>>
>>>>
>>>> On Thu, Jun 14, 2012 at 2:44 PM, rahul patil <
>>>> rahul.deshmukhpa...@gmail.com> wrote:
>>>>
>>>>> to store items in stack you will need some DS. Do they mean you cant
>>>>> use any auxillary DS than stack ?
>>>>>
>>>>>
>>>>> On Thu, Jun 14, 2012 at 2:24 PM, Ashish Goel <ashg...@gmail.com>wrote:
>>>>>
>>>>>>
>>>>>> Best Regards
>>>>>> Ashish Goel
>>>>>> "Think positive and find fuel in failure"
>>>>>> +919985813081
>>>>>> +919966006652
>>>>>>
>>>>>> --
>>>>>> 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,
>>>>> Rahul Patil
>>>>>
>>>>> --
>>>>> 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.
>>>>
>>>
>>>  --
>>> 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.
>>
>
>  --
> 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.
>



-- 
Cheers,

Nishant Pandey |Specialist Tools Development  |
npan...@google.com<gvib...@google.com> |
+91-9911258345

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