New content added weeklyLive
Master Two Heaps with Adaptive AI.
Master Two Heaps across 10 patterns - Running Median Pattern, Capital / Project Optimization, and Interval & Task Scheduling with Two Heaps - guided by Leyaa's adaptive intelligence.
3Parts
10Patterns
5hEst. duration
Two Heaps Course
3 - part learning journey
Running Median Pattern
3 patterns
Capital / Project Optimization
3 patterns
Interval & Task Scheduling with Two Heaps
4 patterns
✦ Course Structure
Your Two Heaps Journey in 3 Parts
Work through the parts in order - each one builds on the last.
Part 1: Running Median Pattern
Covers Find Median from Data Stream, Maximum Sliding Window Median, Sliding Window Median.
3Patterns
View patterns
Part 2: Capital / Project Optimization
Covers IPO (Maximize Capital, K Projects), Maximum Performance of a Team, Minimize Deviation in Array.
3Patterns
View patterns
Part 3: Interval & Task Scheduling with Two Heaps
Covers Employee Free Time, Next Interval (Find Smallest Start ≥ End), Rearrange String k Distance Apart and 1 more pattern.
4Patterns
View patterns
Curriculum
Everything You'll Learn
Explore every pattern in the course.

Two Heaps
3 parts · 10 patternsPart 1: Running Median Pattern3 patterns
MixedPart 2: Capital / Project Optimization3 patterns
MixedPart 3: Interval & Task Scheduling with Two Heaps4 patterns
MixedNot just a course. A learning intelligence.
Leyaa doesn't just deliver content - it understands where you are, what you need, and how to get you there fastest.
Adaptive Diagnostics
Leyaa identifies which of the 10 patterns you've mastered and which need work - before you waste time on what you already know.
Pattern-Level Precision
Every pattern gets a verdict - Learn, Practice, or Skip - so your study time goes exactly where it counts.
Intelligent Pacing
Leyaa reads your velocity across the whole course and adapts your focus list dynamically, keeping you in the optimal learning zone.
Before & After Visibility
Every assessment creates a snapshot. Retake anytime to see exactly how much you've grown - pattern by pattern.
Learner Autonomy
Leyaa recommends, never restricts. Override any suggestion and explore at your own pace - the system tracks everything regardless.
Clear Learning Path
Running Median Pattern → Capital / Project Optimization → Interval & Task Scheduling with Two Heaps - a structured journey where each part sets you up perfectly for the next.
Two Heaps
Ready to master Two Heaps?
Start your journey today
Start your diagnostic now. Build mastery across all 10 patterns in under 15 minutes.
10 Patterns
Personalized roadmap





































