Media Summary: Updates: Similarly, I would rewrite sum_() that handles negative n as: def sum_(n): if n == 0: return 0 if n lt 0: return -sum_(-n) ... In this video, we take a look at one of the more challenging computer science concepts:
Week 8 Recursion A Step By Step Approach - Detailed Analysis & Overview
Updates: Similarly, I would rewrite sum_() that handles negative n as: def sum_(n): if n == 0: return 0 if n lt 0: return -sum_(-n) ... In this video, we take a look at one of the more challenging computer science concepts: