How to calculate space complexity of any algorithm or program ....
How to properly phrase a question when asking for help ....
http://www.google.com/search?hl=en&q=%22space+complexity%22
71,000 answers there!
About 4,150,000 results (0.25 seconds) and this page is one of them.. :P and of no use