🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
hard

Debug a Code Snippet

#coding #debugging #logic

Analyze a piece of code to find and fix errors.

Review the following Python function intended to calculate the factorial of a number. Identify the bug and provide the corrected code: def factorial(n): return n * factorial(n-1).