yes that is the solution is also wrote, however one critical point in this
solution is if queue size is x then each stack needs to be of size x thereby
requiring overall 2x space.

Best Regards
Ashish Goel
"Think positive and find fuel in failure"
+919985813081
+919966006652


On Thu, Jun 30, 2011 at 4:15 AM, bittu <shashank7andr...@gmail.com> wrote:

> @ashish Dude you can Have a Look
>
>
> http://shashank7s.blogspot.com/2011/04/wap-to-implement-queue-using-stack.html
>
> do notify me if we can optimize the solution..:)
>
> Thanks
> Shashank "I Don't Do Code to Code But I Do Code to Build Product"
> Computer Science & Engineering
> Birla Institute of Technology,Mesra
>
>
> --
> 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.

Reply via email to