Practice Questions
Master AI/ML interview questions from deep learning to system design
365 Questions Available
Linear Regression Using Gradient Descent
Machine LearningEasy
Implement Gradient Descent Variants with MSE Loss
Machine LearningMedium
Implement Adam Optimization Algorithm
Machine LearningMedium
Implement Lasso Regression using ISTA
Machine LearningMedium
Single Neuron
Machine LearningEasy
Sigmoid Activation Function Understanding
Machine LearningEasy
Softmax Activation Function Implementation
Machine LearningEasy
Implementation of Log Softmax Function
Machine LearningEasy
Implement ReLU Activation Function
Machine LearningEasy
Simple Convolutional 2D Layer
Machine LearningMedium
Implementing a Simple RNN
Machine LearningMedium
Poisson Distribution Probability Calculator
Machine LearningEasy
Binomial Distribution Probability
Machine LearningMedium
Normal Distribution PDF Calculator
Machine LearningMedium
Descriptive Statistics Calculator
Machine LearningEasy
Calculate Covariance Matrix
Machine LearningEasy
Generate a Confusion Matrix for Binary Classification
Machine LearningEasy
Calculate Accuracy Score
Machine LearningEasy
Implement Precision Metric
Machine LearningEasy
Implement Recall Metric in Binary Classification
Machine LearningEasy
Implement F-Score Calculation for Binary Classification
Machine LearningEasy
Calculate R-squared for Regression Analysis
Machine LearningEasy
Calculate Mean Absolute Error (MAE)
Machine LearningEasy
Calculate Root Mean Square Error (RMSE)
Machine LearningEasy
Implement K-Fold Cross-Validation
Machine LearningMedium
Calculate Performance Metrics for a Classification Model
Machine LearningMedium
KL Divergence Between Two Normal Distributions
Machine LearningEasy
Principal Component Analysis (PCA) Implementation
Machine LearningMedium
K-Means Clustering
Machine LearningMedium
Linear Regression Using Normal Equation
Machine LearningEasy
Binary Classification with Logistic Regression
Machine LearningEasy
Calculate Jaccard Index for Binary Classification
Machine LearningEasy
Pegasos Kernel SVM Implementation
Machine LearningHard
Implement AdaBoost Fit Method
Machine LearningHard
Matrix-Vector Dot Product
Machine LearningEasy
Transpose of a Matrix
Machine LearningEasy
Dot Product Calculator
Machine LearningEasy
Scalar Multiplication of a Matrix
Machine LearningEasy
Calculate Cosine Similarity Between Vectors
Machine LearningEasy
Calculate Mean by Row or Column
Machine LearningEasy
Calculate Eigenvalues of a Matrix
Machine LearningMedium
Calculate 2x2 Matrix Inverse
Machine LearningEasy
Matrix times Matrix
Machine LearningMedium
Implement Self-Attention Mechanism
Deep LearningMedium
The Pattern Weaver's Code
Deep LearningMedium
Positional Encoding Calculator
Deep LearningHard
Implement Multi-Head Attention
Deep LearningHard
GPT-2 Text Generation
Deep LearningHard
Linear Regression Using Gradient Descent
Deep LearningEasy
Implement Gradient Descent Variants with MSE Loss
Deep LearningMedium
Implement Adam Optimization Algorithm
Deep LearningMedium
Implement Lasso Regression using ISTA
Deep LearningMedium
Softmax Activation Function Implementation
Deep LearningEasy
Implementation of Log Softmax Function
Deep LearningEasy
Sigmoid Activation Function Understanding
Deep LearningEasy
Implement ReLU Activation Function
Deep LearningEasy
Leaky ReLU Activation Function
Deep LearningEasy
Implement the PReLU Activation Function
Deep LearningEasy
Single Neuron
Deep LearningEasy
Implementing a Simple RNN
Deep LearningMedium
Implement Long Short-Term Memory (LSTM) Network
Deep LearningMedium
Simple Convolutional 2D Layer
Deep LearningMedium
Poisson Distribution Probability Calculator
Deep LearningEasy
Binomial Distribution Probability
Deep LearningMedium
Normal Distribution PDF Calculator
Deep LearningMedium
Descriptive Statistics Calculator
Deep LearningEasy
Calculate Covariance Matrix
Deep LearningEasy
Single Neuron with Backpropagation
Deep LearningMedium
Implementing Basic Autograd Operations
Deep LearningMedium
Implement a Simple RNN with Backpropagation Through Time (BPTT)
Deep LearningHard
Matrix-Vector Dot Product
Deep LearningEasy
Transpose of a Matrix
Deep LearningEasy
Dot Product Calculator
Deep LearningEasy
Scalar Multiplication of a Matrix
Deep LearningEasy
Calculate Cosine Similarity Between Vectors
Deep LearningEasy
Calculate Mean by Row or Column
Deep LearningEasy
Calculate Eigenvalues of a Matrix
Deep LearningMedium
Calculate 2x2 Matrix Inverse
Deep LearningEasy
Matrix times Matrix
Deep LearningMedium
Dropout Layer
Data Science Interview PrepMedium
Min-Max Scaling of Feature Values
Data Science Interview PrepEasy
Softmax Activation Function Implementation
Data Science Interview PrepEasy
Single Neuron
Data Science Interview PrepEasy
Implement ReLU Activation Function
Data Science Interview PrepEasy
Calculate F1 Score from Predicted and True Labels
Data Science Interview PrepEasy
Calculate Accuracy Score
Data Science Interview PrepEasy
Calculate Root Mean Square Error (RMSE)
Data Science Interview PrepEasy
Calculate Mean Absolute Error (MAE)
Data Science Interview PrepEasy
Implement Precision Metric
Data Science Interview PrepEasy
Detect Overfitting or Underfitting
Data Science Interview PrepEasy
ExponentialLR Learning Rate Scheduler
Data Science Interview PrepEasy
Linear Regression Using Gradient Descent
Data Science Interview PrepEasy
K-Means Clustering
Data Science Interview PrepMedium
Implement Early Stopping Based on Validation Loss
Data Science Interview PrepEasy
Find the Best Gini-Based Split for a Binary Decision Tree
Data Science Interview PrepMedium
Implement K-Nearest Neighbors
Data Science Interview PrepMedium
One-Hot Encoding of Nominal Values
Data Science Interview PrepEasy
Implement K-Fold Cross-Validation
Data Science Interview PrepMedium
Calculate Mean by Row or Column
Data Science Interview PrepEasy
Feature Scaling Implementation
Data Science Interview PrepEasy
Implement Gradient Descent Variants with MSE Loss
MLE Interview PrepMedium
Compute Multi-class Cross-Entropy Loss
MLE Interview PrepEasy
Implement Ridge Regression Loss Function
MLE Interview PrepEasy
Implement Lasso Regression using ISTA
MLE Interview PrepMedium
Implement Self-Attention Mechanism
MLE Interview PrepMedium
Implement Multi-Head Attention
MLE Interview PrepHard
Positional Encoding Calculator
MLE Interview PrepHard
Single Neuron with Backpropagation
MLE Interview PrepMedium
Implementing a Custom Dense Layer in Python
MLE Interview PrepHard
Implement Batch Normalization for BCHW Input
MLE Interview PrepMedium
Dropout Layer
MLE Interview PrepMedium
Implement ReLU Activation Function
MLE Interview PrepEasy
Softmax Activation Function Implementation
MLE Interview PrepEasy
Implement K-Fold Cross-Validation
MLE Interview PrepMedium
Generate a Confusion Matrix for Binary Classification
MLE Interview PrepEasy
Implement Precision Metric
MLE Interview PrepEasy
Implement Recall Metric in Binary Classification
MLE Interview PrepEasy
Implement F-Score Calculation for Binary Classification
MLE Interview PrepEasy
Calculate AUC (Area Under ROC Curve)
MLE Interview PrepMedium
Implement Adam Optimization Algorithm
MLE Interview PrepMedium
Momentum Optimizer
MLE Interview PrepEasy
Gradient Clipping by Global Norm
MLE Interview PrepMedium
Implement Stratified Train-Test Split
MLE Interview PrepMedium
Implement Grid Search
MLE Interview PrepMedium
Implement Early Stopping Based on Validation Loss
MLE Interview PrepEasy
Feature Drift Detection using Population Stability Index
MLE Interview PrepMedium
A/B Test Statistical Analysis for Model Comparison
MLE Interview PrepHard
Calculate P50/P95/P99 Latency Percentiles
MLE Interview PrepEasy
Implement INT8 Quantization
MLE Interview PrepMedium
Implement Prediction Distribution Monitoring
MLE Interview PrepMedium
Calculate Statistical Power for Experiment Design
MLE Interview PrepMedium
Implement Request Batching for Inference
MLE Interview PrepMedium
Simple Convolutional 2D Layer
MLE Interview PrepMedium
Implement Global Average Pooling
MLE Interview PrepEasy
Implement Long Short-Term Memory (LSTM) Network
MLE Interview PrepMedium
Implement GRU Cell
MLE Interview PrepMedium
Linear Regression Using Gradient Descent
MLE Interview PrepEasy
Train Logistic Regression with Gradient Descent
MLE Interview PrepHard
K-Means Clustering
MLE Interview PrepMedium
Principal Component Analysis (PCA) Implementation
MLE Interview PrepMedium
Decision Tree Learning
MLE Interview PrepHard
Calculate Image Brightness
Computer VisionEasy
Grayscale Image Contrast Calculator
Computer VisionEasy
Optical Flow EPE with Masks (OmniWorld-style metric)
Computer VisionMedium
PCA Color Augmentation
Computer VisionHard
Convert RGB Image to Grayscale
Computer VisionEasy
Flip an Image Horizontally or Vertically
Computer VisionEasy
Apply Zero Padding to an Image
Computer VisionEasy
Bilinear Image Resizing
Computer VisionMedium
Sobel Edge Detection
Computer VisionMedium
Non-Maximum Suppression for Object Detection
Computer VisionHard
MMLU Log-Probability Scoring
LLMMedium
Rubric-Based LLM Judge Evaluation
LLMMedium
Boxed Answer Extraction for Math Benchmarks
LLMMedium
Math Answer Verification with Equivalence Checking
LLMMedium
Pairwise Preference Judge for LLM Comparison
LLMMedium
Code Execution Verifier for Programming Benchmarks
LLMMedium
Direct Preference Optimization (DPO) Loss
LLMMedium
Top-p (Nucleus) Sampling
LLMMedium
What are Large Language Models (LLMs)?
LLMEasy
Tokenization
LLMEasy
Hallucination in LLMs
LLMEasy
Temperature Parameter
LLMEasy
Prompt Engineering
LLMEasy
Fine-Tuning
LLMEasy
Generative vs Discriminative AI
LLMEasy
Pre-training
LLMEasy
Zero-Shot Prompting
LLMEasy
Context Window
LLMEasy
Transformer Architecture
LLMMedium
Self-Attention Mechanism
LLMMedium
Encoder vs Decoder
LLMMedium
Retrieval-Augmented Generation (RAG)
LLMMedium
Vector Databases
LLMMedium
Embeddings
LLMMedium
RLHF
LLMMedium
Top-K vs Top-P Sampling
LLMMedium
Cross-Entropy Loss
LLMMedium
LoRA (Low-Rank Adaptation)
LLMMedium
Perplexity
LLMMedium
Few-Shot Prompting
LLMMedium
Greedy vs Beam Search
LLMMedium
Semantic Search
LLMMedium
Softmax Function
LLMMedium
Masked Language Modeling
LLMMedium
Instruction Tuning
LLMMedium
Gradient Descent in LLMs
LLMMedium
Overfitting vs Underfitting
LLMMedium
Transfer Learning
LLMMedium
FlashAttention
LLMHard
Rotary Position Embeddings (RoPE)
LLMHard
KV Cache
LLMHard
Mixture of Experts (MoE)
LLMHard
Direct Preference Optimization (DPO)
LLMHard
Quantization (GPTQ / AWQ)
LLMHard
Speculative Decoding
LLMHard
PagedAttention
LLMHard
Tensor Parallelism vs Pipeline Parallelism
LLMHard
Grouped-Query Attention (GQA)
LLMHard
Contrastive Decoding
LLMHard
Catastrophic Forgetting
LLMHard
ALiBi Positional Encoding
LLMHard
Chinchilla Scaling Laws
LLMHard
Self-Supervised Learning Frameworks
LLMHard
The Softmax Bottleneck
LLMHard
Constitutional AI
LLMHard
Length Extrapolation Limitation
LLMHard
Byte-Pair Encoding (BPE)
LLMHard
Catastrophic Forgetting in RLHF
LLMHard
Build a Simple ETL Pipeline (MLOps)
MLOpsMedium
Calculate Model Inference Statistics for Monitoring
MLOpsEasy
Calculate Batch Prediction Health Metrics
MLOpsEasy
Calculate SLA Compliance Metrics for Model Service
MLOpsEasy
Analyze Canary Deployment Health for Model Rollout
MLOpsMedium
Data Quality Scoring for ML Pipelines
MLOpsMedium
Feature Drift Detection using Population Stability Index
MLOpsMedium
A/B Test Statistical Analysis for Model Comparison
MLOpsHard
ML Pipeline DAG Scheduler with Critical Path Analysis
MLOpsHard
Implement Prediction Distribution Monitoring
MLOpsMedium
Implement Request Batching for Inference
MLOpsMedium
Implement Volume Bars Sampling
Reinforcement LearningMedium
Implement Dollar Bars Sampling
Reinforcement LearningMedium
Diffusion Reconstruction Loss
Reinforcement LearningMedium
Forward Diffusion Process
Reinforcement LearningMedium
Forward & Backward Diffusion Process
Reinforcement LearningMedium
Implement the GRPO Objective Function
Reinforcement LearningHard
Policy Gradient with REINFORCE
Reinforcement LearningHard
Implement Q-Learning Algorithm for MDPs
Reinforcement LearningMedium
Gridworld Policy Evaluation
Reinforcement LearningMedium
Implement the Bellman Equation for Value Iteration
Reinforcement LearningMedium
Epsilon-Greedy Action Selection for n-Armed Bandit
Reinforcement LearningMedium
Incremental Mean for Online Reward Estimation
Reinforcement LearningEasy
Exponential Weighted Average of Rewards
Reinforcement LearningEasy
Upper Confidence Bound (UCB) Action Selection
Reinforcement LearningEasy
Gradient Bandit Action Selection
Reinforcement LearningMedium
Gambler's Problem: Value Iteration
Reinforcement LearningHard
Compute Discounted Return
Reinforcement LearningEasy
Evaluate Expected Value in a Markov Decision Process
Reinforcement LearningMedium
Calculate the Discounted Return for a Given Trajectory
Reinforcement LearningEasy
Monte Carlo Tree Search
Reinforcement LearningHard
GSPO: Group Sequence Policy Optimization
Reinforcement LearningHard
Dr. GRPO: Complete Objective Function
Reinforcement LearningMedium
Group Relative Advantage for GRPO
Reinforcement LearningEasy
KL Divergence Estimator for GRPO
Reinforcement LearningEasy
Pass@k and Majority Voting Evaluation Metrics
Reinforcement LearningEasy
Budget-Constrained RL Loss
Reinforcement LearningMedium
Compute Temporal Difference Error
Reinforcement LearningEasy
First-Visit Monte Carlo Prediction
Reinforcement LearningMedium
n-Step TD Prediction
Reinforcement LearningMedium
TD(llama) with Eligibility Traces
Reinforcement LearningHard
Fine-Tune Model Weights with RLHF Policy Gradient
Reinforcement LearningMedium
RAFT: Iterative Reward-Ranked Fine-Tuning Loop
Reinforcement LearningMedium
Byte Pair Encoding (BPE) Tokenizer
NLPMedium
Optimal String Alignment Distance
NLPEasy
Implement TF-IDF (Term Frequency-Inverse Document Frequency)
NLPMedium
GPT-2 Text Generation
NLPHard
BM25 Ranking
NLPMedium
Evaluate Translation Quality with METEOR Score
NLPMedium
Compute Pointwise Mutual Information
NLPMedium
Calculate Unigram Probability from Corpus
NLPEasy
Calculate Perplexity for Language Models
NLPEasy
BLEU Score for Text Generation
NLPMedium
Bradley-Terry Model for Pairwise Rankings
NLPMedium
Exact Match Score with Normalization
NLPEasy
MMLU Letter-Matching Evaluation
NLPMedium
ReAct Pattern Implementation
AgentsEasy
Function Call Parser
AgentsEasy
Sliding Window Memory Buffer
AgentsEasy
Basic Agent Loop with Termination
AgentsEasy
Sequential Prompt Chain
AgentsEasy
Keyword-Based Tool Selector
AgentsEasy
Tool Execution with Try-Catch
AgentsEasy
Observation-Action Cycle Logger
AgentsEasy
Token Budget Tracker
AgentsEasy
Simple Self-Critique Wrapper
AgentsEasy
Idempotency Key Generator
AgentsEasy
Tool Input Validator
AgentsEasy
Agent State Machine
AgentsEasy
Simple Input Guardrail
AgentsEasy
Deterministic vs Non-Deterministic Classifier
AgentsEasy
Simple Knowledge Graph Memory
AgentsMedium
Factuality Checker for Agent Outputs
AgentsMedium
Tool Misuse Detector
AgentsMedium
Blackboard Knowledge System
AgentsMedium
Parallel Agent Executor
AgentsMedium
Conversation Memory Compressor
AgentsMedium
Agent Message Bus
AgentsMedium
Circuit Breaker for Tool Calls
AgentsMedium
Agent Evaluation Framework
AgentsMedium
Tool Execution Sandbox
AgentsMedium
Loop Detection and Prevention
AgentsMedium
LRU-K Memory Eviction
AgentsMedium
Reward Hacking Detector
AgentsMedium
Hierarchical Task Decomposer
AgentsMedium
Coordinator Agent Implementation
AgentsMedium
Role-Based Agent System
AgentsMedium
Multi-Layer Guardrail System
AgentsMedium
Agent Observability Logger
AgentsMedium
Agent Failure Recovery System
AgentsMedium
Safety Constraint Validator
AgentsMedium
Design Production-Ready Agent System
AgentsHard
Distributed Multi-Agent Coordinator
AgentsHard
Agent Latency Optimizer
AgentsHard
Agent Cost Optimizer
AgentsHard
Scalable Multi-Agent Orchestrator
AgentsHard
Advanced Failure Recovery with Checkpointing
AgentsHard
End-to-End Observability Pipeline
AgentsHard
Tree of Thoughts Implementation
AgentsHard
Hierarchical Memory System
AgentsHard
Hierarchical Task Network Planner
AgentsHard
Tool Composition and Chaining Engine
AgentsHard
Constitutional AI Safety Layer
AgentsHard
Agent Self-Improvement System
AgentsHard
Multi-Agent Consensus Protocol
AgentsHard
Advanced RAG with Query Rewriting and Fusion
AgentsHard
Define and Implement a Basic AI Agent Class
AgentsEasy
Implement Agent Lifecycle States
AgentsEasy
Build a Prompt Chain Pipeline
AgentsEasy
Implement Short-Term vs Long-Term Memory
AgentsEasy
Implement the ReAct Pattern
AgentsEasy
Agent Self-Reflection and Self-Critique
AgentsEasy
Basic Tool Registration and Calling
AgentsEasy
Implement Termination Conditions for Agent Loops
AgentsEasy
Observation-Thought-Action Cycle Implementation
AgentsEasy
Implement Basic Guardrails for Agent Output
AgentsEasy
Vector Database Integration for Agent Memory
AgentsEasy
Implement Tool Retry Mechanism
AgentsEasy
Agent Token Budget Controller
AgentsEasy
Implement Role-Based Multi-Agent System
AgentsEasy
Implement Basic Hallucination Detection
AgentsEasy
Implement a Full ReAct Agent with Dynamic Tool Selection
AgentsMedium
Planner-Executor Agent Architecture
AgentsMedium
Implement RAG Inside an Agent
AgentsMedium
Implement Agent Communication Protocol
AgentsMedium
Task Decomposition with Dependency Resolution
AgentsMedium
Implement Episodic Memory with Retrieval
AgentsMedium
Implement Tool Idempotency and Validation
AgentsMedium
Debate Agent Implementation
AgentsMedium
Implement Agent Sandboxing and Safety Constraints
AgentsMedium
Memory Compression and Summarization
AgentsMedium
Implement Coordinator Agent Pattern
AgentsMedium
Knowledge Graph Integration for Agent Reasoning
AgentsMedium
Implement Agent Evaluation Framework
AgentsMedium
Implement Parallel Agent Execution
AgentsMedium
Implement Hierarchical Agent System
AgentsMedium
Blackboard Architecture for Multi-Agent Coordination
AgentsMedium
Design a Production-Ready AI Agent System
AgentsHard
Design a Distributed Multi-Agent System with Fault Tolerance
AgentsHard
Implement Agent Observability and Distributed Tracing
AgentsHard
Latency Optimization for Multi-Step Agent Pipelines
AgentsHard
Implement Agent Cost Optimization System
AgentsHard
Implement Failure Recovery and Checkpoint System
AgentsHard
Design an Agent with Full Conflict Resolution
AgentsHard
Implement Tool Misuse Detection System
AgentsHard
Implement Agent Alignment and Value Alignment Checker
AgentsHard
Implement Scalable Multi-Agent Message Router
AgentsHard
Implement Semantic Memory Eviction with Relevance Scoring
AgentsHard
Deterministic vs Non-Deterministic Tool Usage
AgentsMedium
Tool Execution Loop with Configurable Error Policies
AgentsMedium
Tree of Thoughts Planning Agent
AgentsMedium
Generator-Critic Self-Play Loop
AgentsMedium
Full Agent Observability Pipeline with Cost Tracking and Alerts
AgentsHard
Auto-Scaling Agent Worker Pool
AgentsHard
Cross-Session Agent Memory and User Profiling
AgentsHard
Adaptive Instruction Priority and Conflict Resolution
AgentsHard