A collection of LeetCode problems solved using Heap pattern techniques, explanations, and complexity analysis.
| # | Problem | Language | Time | Space | Explanation |
|---|---|---|---|---|---|
| 1523 | Count Odd Numbers in an Interval Range | Python | O(n) | O(n) | Explanation |
| 2725 | Interval Cancellation | TypeScript | O(n) | O(n) | Explanation |
| # | Problem | Language | Time | Space | Explanation |
|---|---|---|---|---|---|
| 68 | Text Justification | Python | O(n) | O(n) | Explanation |
| 352 | Data Stream as Disjoint Intervals | Python | O(n) | O(n) | Explanation |
| 1520 | Maximum Number of Non-Overlapping Substrings | JavaScript | O(n) | O(n) | Explanation |
| 1851 | Minimum Interval to Include Each Query | Python | O(n) | O(n) | Explanation |
| 2276 | Count Integers in Intervals | JavaScript | O(n) | O(n) | Explanation |
| 3414 | Maximum Score of Non-overlapping Intervals | JavaScript | O(n) | O(n) | Explanation |
| 4003 | Minimum Cost Path with Alternating Directions III | Python | O(n) | O(n) | Explanation |
| 4086 | Minimum Interval Selection to Cover Target Intervals | Python | O(n) | O(n) | Explanation |