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
- Pattern first (if new)
- Practice problem referencing the pattern
- Multiple solutions showing different tradeoffs
- 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.