Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 2.9 KB

File metadata and controls

54 lines (44 loc) · 2.9 KB

🪟 1. Fixed Size Window 🟢 Easy

📏 2. Variable Size Window (Longest) 🟢 Easy

📉 3. Variable Size Window (Shortest) 🟡 Medium

🎯 MUST-DO LIST (If You Have Limited Time)

👉 Mastering these will cover 90% of sliding window scenarios:

⚡ Smart Practice Strategy

  1. Identify the Type: Is the window size fixed or does it change based on a condition?
  2. Expansion: Move the right pointer to expand the window and include more elements.
  3. Contraction: Move the left pointer to shrink the window once the condition is met (or violated).
  4. State Management: Use a Hash Map, Frequency Array, or a Simple Variable to track the current window's "state" (sum, count, unique chars).

📊 Total LeetCode Questions Solved by Pattern

Pattern Category Total Questions
🪟 1. Fixed Size Window 5
📏 2. Variable Size Window (Longest) 5
📉 3. Variable Size Window (Shortest) 3
Total Questions 13
🎯 Must-Do Problems 6