Tweak
Code
Home
Roadmap
Courses
Problems
Dashboard
Pricing
FREE
Home
Roadmap
Courses
Problems
Dashboard
Pricing
Optimization lessons
Course 05
Expand all
Optimization
Choose, then reuse
0/26 solved
0%
Intervals + Greedy
0/9
1
Sorting & Merging Overlapping Intervals
Lesson
Free
Problems 0/3
2
Sweep-Line & Concurrent Peak Counting
Lesson
Problems 0/3
3
Greedy Choice by End Time or Reach
Lesson
Problems 0/3
1D DP
0/9
2D DP
0/8
1
Grid Path Tabulation
Lesson
Problems 0/3
2
Two-Sequence Alignment (LCS / Edit Distance)
Lesson
Problems 0/3
3
0/1 Knapsack & Target Sum Tables
Lesson
Problems 0/2
3.1
Partition Equal Subset Sum
Taught
3.2
Target Sum
9 lessons · 26 problems
Python
Java
C++
JavaScript
TypeScript
C#
Go
Kotlin
Swift
Rust
Node 22.08.0
Reset
Run tests
Loading editor…
Test cases
Run to compare output
Case 1
Input
nums = [1,1,1,1,1], target = 3
Output
—
Expected
5