trekhleb / javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
MIT License
185.07k stars 29.85k forks source link

factorial of negative number does not exist, factorial of 0 and 1 is 1. #1008 #1021

Open njiddasalifu opened 1 year ago

njiddasalifu commented 1 year ago

This PR solve the issue related to the ticket number #1008.