Frage im Vorstellungsgespräch bei Microsoft

implement factorial method

Antwort im Vorstellungsgespräch

Anonym

21. Aug. 2012

the simple answer would be : def factorial(a): if a == 0: return 1 else: return a * factorial(a-1)