Byte Depth
← All tags

#Greedy

8 articles

DSA

Task Scheduler

Three approaches — Math formula O(n), Greedy Max-Heap O(n log k), Sorted Array O(n). Find minimum CPU intervals with cooldown constraint.

Medium·Sep 16, 2026
DSAHeapPriority Queue🏢 Amazon

DSA

Job Sequencing

Covers: Greedy, optimized Greedy with DSU, Dp. Optimal — Time O(nlogn), Space O(m).

Medium·Aug 8, 2026
DSAGreedyLeetCode

DSA

Meeting Rooms III

Intervals problem — solution with code and analysis.

Hard·Aug 8, 2026
DSAIntervalsArrays

DSA

Meeting Rooms II

Covers: Sweep line algorithm (or tim…, Min Heap (Priority Queue), Two Sorted Arrays (Two Point…. Optimal — Time O(n log n), Space O(n).

Medium·Aug 8, 2026
DSAIntervalsArrays🏢 Amazon

DSA

Meeting Rooms

Intervals. Time O(N * logN), Space O(N).

Easy·Aug 8, 2026
DSAIntervalsArrays

DSA

Jump Game

Covers: Recursion, Greedy. Optimal — Time O(n), Space O(1).

Medium·Aug 8, 2026
DSAGreedyLeetCode

DSA

Jump Game III

Greedy. Time O(n), Space O(n).

Medium·Aug 8, 2026
DSAGreedyLeetCode

DSA

Jump Game II

Covers: Recursive, DP, Greedy. Optimal — Time O(n), Space O(1).

Medium·Aug 8, 2026
DSAGreedyLeetCode🏢 Amazon
© 2026 ByteDepth. All rights reserved.Built with care for curious engineers.