educative.io

A little error in your course

You wrote:

factorial(n) = 0   if n is 1 #base case

it should be:

factorial(n) = 1   if n is 1 #base case

Best regards
Miguel Alves


Type your question above this line.

Course: https://www.educative.io/collection/10370001/5765097389555712
Lesson: https://www.educative.io/collection/page/10370001/5765097389555712/5762578928107520

Hi @Miguel_Alves ,

The line has been updated to

factorial(n) = 1   if n <= 1  #base case

Thanks for pointing it out.