AI/ML Interview Questions and Answers
Prepare with 200+ AI/ML interview questions covering Artificial Intelligence and Machine Learning concepts from basic to advanced. Best resource for AI/ML technical interview preparation.
Questions List
Answer
basic
Write a Python function to calculate the factorial of a number using recursion.
def factorial(n):
return 1 if n == 0 else n * factorial(n-1)
# Example: factorial(5) -> 120