trekhleb / javascript-algorithms

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

Added a recursive solution to factorial problem #1063

Open Shashi3k opened 10 months ago

Shashi3k commented 10 months ago

i added a recursive code under your iterative code. Please merge it to your code