#Program NamePatternTimeSpaceKey IdeaLevel
1bestTimeToBuyStockGreedy (track min)O(n)O(1)Track the minimum price seen; profit = current price minus that minimum.Simple
2canJumpGreedy (max reach)O(n)O(1)Track the furthest index reachable; if current index exceeds it, return false.Middle
3jumpGameIIGreedy (BFS levels)O(n)O(1)Treat each jump range as a BFS level; expand the frontier greedily.Middle