Instructions for Claude Code

When Working in This Folder

Pattern Structure

Each pattern file should include:

// Pattern: [Pattern Name]
// Use Case: [Real-world application]
// Complexity: Time O(...), Space O(...)

Practice Session Format

Each practice session includes:

  • Problem Link: LeetCode/HackerRank/etc.
  • Quick Summary: 1-2 sentence problem description
  • Industry Context: Where this pattern appears in real systems
  • Solutions: Multiple approaches with tradeoffs
  • Complexity Analysis: For each approach

Adding New Content

  1. Pattern first (if new)
  2. Practice problem referencing the pattern
  3. Multiple solutions showing different tradeoffs
  4. Always include complexity analysis

Java Version Notes

  • Default to Java 17 compatible code
  • Mark Java 21+ features with // Java 21+ comment
  • Common Java 21+ features: Pattern matching for switch, record patterns, virtual threads

Motivation

Include real-world use cases to show why each pattern matters beyond interviews.