0

Possible Duplicate:
Recursion or Iteration?

Hi,
I want to know is that did recursion in python improves the performance?
Kindly explain with any code if anyone can.

Thanks

Community
  • 1
  • 1
sam
  • 17,145
  • 24
  • 77
  • 113
  • thanks for ur information. that info is not actually but will help me alot too. – sam Jun 01 '11 at 07:55
  • 2
    That's a shame. I found it a rather informative read. However, note that the "duplicate" question talks about recursion in general. Python *does not* do TCO and will thus always have stack overhead for the recursive function calls. However, write code or clarity first. Then profile. –  Jun 01 '11 at 07:58
  • Please, IMHO, new users should not be downvoted without a clear explanation. Otherwise, it is a useless action and does not contribute to attract new users of SO – joaquin Jun 01 '11 at 07:58
  • 2
    but this question is specific to python language and not generalized for any recursion – sam Jun 01 '11 at 08:07

0 Answers0