coding-challenges/docs/platforms/leetcode.md at main ยท pertrai1/coding-challenges

LeetCode Platform Guide

Overview

LeetCode is a comprehensive platform for practicing data structures and algorithms, with 2000+ problems across various topics and difficulty levels.

๐Ÿ“ Repository Structure

leetcode/
โ”œโ”€โ”€ easy/
โ”œโ”€โ”€ medium/
โ””โ”€โ”€ hard/

Each problem follows the naming convention: {number}-{problem-slug}/

Example: leetcode/medium/0003-longest-substring-without-repeating-characters/

๐Ÿ“Š Current Progress

  • Total Problems: 157
  • Easy: 80
  • Medium: 65
  • Hard: 12

๐ŸŽฏ Problem Format

Each problem directory contains:

  • README.md - Problem description, examples, constraints
  • {problem-name}.js or {problem-name}.ts - Main solution
  • {problem-name}.test.js - Test cases (optional)
  • Analysis files in docs/analysis/ (auto-generated)

๐Ÿ”— Resources

๐Ÿ“ˆ Recommended Learning Path

Phase 1: Fundamentals (Easy)

  • Arrays & Strings
  • Hash Tables
  • Two Pointers
  • Basic Recursion

Phase 2: Core Patterns (Medium)

  • Sliding Window
  • Binary Search
  • DFS/BFS
  • Dynamic Programming (intro)

Phase 3: Advanced (Hard)

  • Advanced DP
  • Graph Algorithms
  • Complex Data Structures
  • Optimization Problems

๐Ÿ’ก Tips for LeetCode

  1. Read constraints carefully - They often hint at the solution approach
  2. Start with brute force - Then optimize
  3. Practice patterns - Group similar problems together
  4. Time yourself - Aim for 30-45 minutes per problem in practice
  5. Review solutions - Even after solving, read top solutions

๐Ÿท๏ธ Topics Covered

This repository organizes LeetCode problems by:

  • Difficulty: Easy, Medium, Hard
  • Data Structure: Arrays, Trees, Graphs, etc.
  • Algorithm: Two Pointers, Sliding Window, DP, etc.
  • Company Tags: (tracked separately)

๐Ÿ“ Solution Guidelines

See CLAUDE.md for detailed code review and solution guidelines specific to this repository.