Skip to content
Avio Lines
← Heap / Priority Queue lineD16Stop 33 of 35

Take Gifts From the Richest Pile (LeetCode 2558)

EasyLeetCode 2558 · Scheduling & Greedy with Heap · Google, Amazon +2 · 17:42Take Gifts From the Richest Pile · Simple Explanation · Leetcode 2558
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

Pause here and write your approach in two lines. Compare it with MIK's when the video ends.

Sign in to write your approach →

About this video

Video solution for LeetCode 2558 Take Gifts From the Richest Pile by codestorywithMIK: Heap / Priority Queue, Easy. Topics: Array, Heap (Priority Queue), Simulation. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
easy
Topics
Array, Heap (Priority Queue), Simulation
Patterns
Scheduling & Greedy with Heap
Duration
17:42