import Link from "next/link"; import { getStats } from "@/lib/api"; export default async function HomePage() { let stats; try { stats = await getStats(); } catch { stats = null; } return (

Master Coding Interviews

Curated collection of coding interview questions with detailed explanations, common pitfalls, and optimal solutions.

Browse Questions
{stats && (
{stats.total_questions}
Total Questions
{stats.by_category.length}
Categories
{stats.by_pattern.length}
Algorithmic Patterns
)} {stats && (
{stats.by_difficulty.easy}
Easy
{stats.by_difficulty.medium}
Medium
{stats.by_difficulty.hard}
Hard
)}

Quick Links

Browse by Category

Arrays, Trees, Graphs, Dynamic Programming, and more

Browse by Pattern

Two Pointers, Sliding Window, BFS, DFS, Backtracking, and more

); }