Tag: heap-priority-queue
- Average Height of Buildings in Each Segment
- Avoid Flood in The City
- Campus Bikes
- Car Fleet II
- Car Pooling
- Cheapest Flights Within K Stops
- Choose K Elements With Maximum Sum
- Closest Binary Search Tree Value II
- Connecting Cities With Minimum Cost
- Constrained Subsequence Sum
- Construct String With Repeat Limit
- Construct Target Array With Multiple Sums
- Continuous Subarrays
- Course Schedule III
- Cut Off Trees for Golf Event
- Delete Greatest Value in Each Row
- Delivering Boxes from Storage to Ports
- Design a 3D Binary Matrix with Efficient Layer Tracking
- Design a File Sharing System
- Design a Food Rating System
- Design a Number Container System
- Design an Array Statistics Tracker
- Design Graph With Shortest Path Calculator
- Design Movie Rental System
- Design Search Autocomplete System
- Design Task Manager
- Design Twitter
- Diagonal Traverse II
- Digit Operations to Make Two Integers Equal
- Dinner Plate Stacks
- Distant Barcodes
- Divide an Array Into Subarrays With Minimum Cost II
- Divide Intervals Into Minimum Number of Groups
- Earliest Second to Mark Indices II
- Employee Free Time
- Exam Room
- Final Array State After K Multiplication Operations I
- Final Array State After K Multiplication Operations II
- Find a Safe Walk Through a Grid
- Find Building Where Alice and Bob Can Meet
- Find Edges in Shortest Paths
- Find K Closest Elements
- Find K Pairs with Smallest Sums
- Find Kth Largest XOR Coordinate Value
- Find Median from Data Stream
- Find Minimum Time to Reach Last Room I
- Find Minimum Time to Reach Last Room II
- Find Number of Coins to Place in Tree Nodes
- Find Score of an Array After Marking All Elements
- Find Servers That Handled Most Number of Requests
- Find Shortest Path with K Hops
- Find Subsequence of Length K With the Largest Sum
- Find the Closest Marked Node
- Find the K-Sum of an Array
- Find the Kth Largest Integer in the Array
- Find the Kth Smallest Sum of a Matrix With Sorted Rows
- Find the Safest Path in a Grid
- Find X-Sum of All K-Long Subarrays I
- Find X-Sum of All K-Long Subarrays II
- Finding MK Average
- Furthest Building You Can Reach
- Get Biggest Three Rhombus Sums in a Grid
- High Five
- IPO
- Jump Game VI
- K Closest Points to Origin
- K Empty Slots
- K Highest Ranked Items Within a Price Range
- K-th Nearest Obstacle Queries
- K-th Smallest Prime Fraction
- Kth Largest Element in a Stream
- Kth Largest Element in an Array
- Kth Smallest Element in a Sorted Matrix
- Largest Number After Digit Swaps by Parity
- Last Stone Weight
- Lexicographically Minimum String After Removing Stars
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
- Longest Happy String
- Longest Uploaded Prefix
- Make Array Zero by Subtracting Equal Amounts
- Make the Prefix Sum Non-negative
- Mark Elements on Array by Performing Queries
- Max Sum of a Pair With Equal Sum of Digits
- Max Value of Equation
- Maximal Score After Applying K Operations
- Maximize Profit from Task Assignment
- Maximum Average Pass Ratio
- Maximum Elegance of a K-Length Subsequence
- Maximum Number of Eaten Apples
- Maximum Number of Events That Can Be Attended
- Maximum Number of Ones
- Maximum Number of Points From Grid Queries
- Maximum Number of Robots Within Budget
- Maximum Performance of a Team
- Maximum Product After K Increments
- Maximum Product of Two Elements in an Array
- Maximum Score From Removing Stones
- Maximum Spending After Buying Items
- Maximum Star Sum of a Graph
- Maximum Subsequence Score
- Maximum Sum With at Most K Elements
- Maximum Total Importance of Roads
- Meeting Rooms II
- Meeting Rooms III
- Merge k Sorted Lists
- Mice and Cheese
- Minimize Deviation in Array
- Minimum Amount of Time to Fill Cups
- Minimum Cost of a Path With Special Roads
- Minimum Cost to Buy Apples
- Minimum Cost to Connect Sticks
- Minimum Cost to Hire K Workers
- Minimum Cost to Make at Least One Valid Path in a Grid
- Minimum Cost to Reach City With Discounts
- Minimum Deletions to Make Array Divisible
- Minimum Difference in Sums After Removal of Elements
- Minimum Interval to Include Each Query
- Minimum Moves to Move a Box to Their Target Location
- Minimum Number Game
- Minimum Number of Coins for Fruits II
- Minimum Number of Coins for Fruits
- Minimum Number of Refueling Stops
- Minimum Number of Seconds to Make Mountain Height Zero
- Minimum Number of Visited Cells in a Grid
- Minimum Obstacle Removal to Reach Corner
- Minimum Operations to Exceed Threshold Value II
- Minimum Operations to Halve Array Sum
- Minimum Operations to Make Elements Within K Subarrays Equal
- Minimum Operations to Make Subarray Elements Equal
- Minimum Path Cost in a Hidden Grid
- Minimum Sum of Squared Difference
- Minimum Time to Build Blocks
- Minimum Time to Visit a Cell In a Grid
- Minimum Time to Visit Disappearing Nodes
- Modify Graph Edge Weights
- Most Frequent IDs
- Most Popular Video Creator
- Network Delay Time
- Next Greater Element IV
- Number of Orders in the Backlog
- Number of Possible Sets of Closing Branches
- Number of Restricted Paths From First to Last Node
- Optimize Water Distribution in a Village
- Path With Maximum Minimum Value
- Path with Maximum Probability
- Path With Minimum Effort
- Pizza With 3n Slices
- Process Tasks Using Servers
- Put Marbles in Bags
- Query Kth Smallest Trimmed Number
- Reachable Nodes In Subdivided Graph
- Rearrange String k Distance Apart
- Reduce Array Size to The Half
- Relative Ranks
- Remove Stones to Minimize the Total
- Reorganize String
- Replace Question Marks in String to Minimize Its Value
- Reward Top K Students
- Search Suggestions System
- Seat Reservation Manager
- Sell Diminishing-Valued Colored Balls
- Sequentially Ordinal Rank Tracker
- Shortest Subarray with Sum at Least K
- Single-Threaded CPU
- Sliding Window Maximum
- Sliding Window Median
- Smallest Number in Infinite Set
- Smallest Range Covering Elements from K Lists
- Sort an Array
- Sort Characters By Frequency
- Split Array into Consecutive Subsequences
- Stock Price Fluctuation
- Stone Game VI
- Strong Password Checker
- Sum in a Matrix
- Swim in Rising Water
- Take Gifts From the Richest Pile
- Task Scheduler
- The K Weakest Rows in a Matrix
- The Maze II
- The Maze III
- The Number of the Smallest Unoccupied Chair
- The Skyline Problem
- Time to Cross a Bridge
- Top K Frequent Elements
- Top K Frequent Words
- Total Cost to Hire K Workers
- Trapping Rain Water II
- Two Best Non-Overlapping Events
- Ugly Number II
- Zero Array Transformation III