GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing leetcodejavascript.com — Heap Priority Queue LeetCode Problems | JavaScript Solutions

Heap Priority Queue | LeetCode Problems

152 Heap Priority Queue solutions to LeetCode solutions.

View Source Code on GitHub
All 2765 Array 1587 String 683 Hash Table 587 Math 485 Dynamic Programming 458 Sorting 384 Greedy 348 Depth-First Search 293 Binary Search 241 Tree 227 Breadth-First Search 224 Matrix 223 Two Pointers 200 Bit Manipulation 197 Binary Tree 175 Prefix Sum 159 Stack 154 Heap Priority Queue 152 Simulation 150 Counting 134 Graph 133 Design 123 Sliding Window 112 Backtracking 104 Union Find 79 Enumeration 78 Linked List 78 Ordered Set 60 Monotonic Stack 55 Trie 51 Number Theory 47 Divide and Conquer 46 Recursion 45 Bitmask 41 Queue 41 Binary Search Tree 40 Segment Tree 38 Memoization 36 Geometry 36 Combinatorics 35 Topological Sort 33 Hash Function 30 Binary Indexed Tree 28 Game Theory 26 String Matching 23 Shortest Path 23 Interactive 23 Rolling Hash 22 Data Stream 20 Brainteaser 16 Monotonic Queue 14 Randomized 12 Merge Sort 12 Doubly-Linked List 11 Counting Sort 10 Iterator 9 Probability and Statistics 7 Quickselect 7 Suffix Array 6 Bucket Sort 6 Line Sweep 5 Minimum Spanning Tree 5 Reservoir Sampling 4 Strongly Connected Component 3 Eulerian Circuit 3 Radix Sort 3 Rejection Sampling 2 Biconnected Component 1

Heap Priority Queue Problems View all solutions →

Merge k Sorted Lists

#23 Hard

Kth Largest Element in an Array

#215 Medium

The Skyline Problem

#218 Hard

Sliding Window Maximum

#239 Hard

Meeting Rooms II

#253 Medium

Ugly Number II

#264 Medium

Closest Binary Search Tree Value II

#272 Hard

Find Median from Data Stream

#295 Hard

Top K Frequent Elements

#347 Medium

Design Twitter

#355 Medium

Rearrange String k Distance Apart

#358 Hard

Find K Pairs with Smallest Sums

#373 Medium

Kth Smallest Element in a Sorted Matrix

#378 Medium

Trapping Rain Water II

#407 Hard

Strong Password Checker

#420 Hard

Sort Characters By Frequency

#451 Medium

Sliding Window Median

#480 Hard

The Maze III

#499 Hard

IPO

#502 Hard

The Maze II

#505 Medium

Relative Ranks

#506 Easy

Task Scheduler

#621 Medium

Course Schedule III

#630 Hard

Smallest Range Covering Elements from K Lists

#632 Hard

Design Search Autocomplete System

#642 Hard

Find K Closest Elements

#658 Medium

Split Array into Consecutive Subsequences

#659 Medium

Cut Off Trees for Golf Event

#675 Hard

K Empty Slots

#683 Hard

Top K Frequent Words

#692 Medium

Kth Largest Element in a Stream

#703 Easy

Network Delay Time

#743 Medium

Employee Free Time

#759 Hard

Reorganize String

#767 Medium

Swim in Rising Water

#778 Hard

K-th Smallest Prime Fraction

#786 Medium

Cheapest Flights Within K Stops

#787 Medium

Exam Room

#855 Medium

Minimum Cost to Hire K Workers

#857 Hard

Shortest Subarray with Sum at Least K

#862 Hard

Minimum Number of Refueling Stops

#871 Hard

Reachable Nodes In Subdivided Graph

#882 Hard

Sort an Array

#912 Medium

K Closest Points to Origin

#973 Medium

Last Stone Weight

#1046 Easy

Distant Barcodes

#1054 Medium

Campus Bikes

#1057 Medium

High Five

#1086 Easy

Car Pooling

#1094 Medium

Path With Maximum Minimum Value

#1102 Medium

Connecting Cities With Minimum Cost

#1135 Medium

Minimum Cost to Connect Sticks

#1167 Medium

Optimize Water Distribution in a Village

#1168 Hard

Dinner Plate Stacks

#1172 Hard

Maximum Number of Ones

#1183 Hard

Minimum Time to Build Blocks

#1199 Hard

Minimum Moves to Move a Box to Their Target Location

#1263 Hard

Search Suggestions System

#1268 Medium

The K Weakest Rows in a Matrix

#1337 Easy

Reduce Array Size to The Half

#1338 Medium

Maximum Number of Events That Can Be Attended

#1353 Medium

Construct Target Array With Multiple Sums

#1354 Hard

Minimum Cost to Make at Least One Valid Path in a Grid

#1368 Hard

Maximum Performance of a Team

#1383 Hard

Pizza With 3n Slices

#1388 Hard

Longest Happy String

#1405 Medium

Diagonal Traverse II

#1424 Medium

Constrained Subsequence Sum

#1425 Hard

Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit

#1438 Medium

Find the Kth Smallest Sum of a Matrix With Sorted Rows

#1439 Hard

Maximum Product of Two Elements in an Array

#1464 Easy

Avoid Flood in The City

#1488 Medium

Max Value of Equation

#1499 Hard

Design a File Sharing System

#1500 Medium

Path with Maximum Probability

#1514 Medium

Find Servers That Handled Most Number of Requests

#1606 Hard

Path With Minimum Effort

#1631 Medium

Furthest Building You Can Reach

#1642 Medium

Sell Diminishing-Valued Colored Balls

#1648 Medium

Minimize Deviation in Array

#1675 Hard

Stone Game VI

#1686 Medium

Delivering Boxes from Storage to Ports

#1687 Hard

Jump Game VI

#1696 Medium

Maximum Number of Eaten Apples

#1705 Medium

Find Kth Largest XOR Coordinate Value

#1738 Medium

Maximum Score From Removing Stones

#1753 Medium

Car Fleet II

#1776 Hard

Number of Restricted Paths From First to Last Node

#1786 Medium

Maximum Average Pass Ratio

#1792 Medium

Number of Orders in the Backlog

#1801 Medium

Minimum Path Cost in a Hidden Grid

#1810 Medium

Finding MK Average

#1825 Hard

Single-Threaded CPU

#1834 Medium

Seat Reservation Manager

#1845 Medium

Minimum Interval to Include Each Query

#1851 Hard

Get Biggest Three Rhombus Sums in a Grid

#1878 Medium

Process Tasks Using Servers

#1882 Medium

Design Movie Rental System

#1912 Hard

The Number of the Smallest Unoccupied Chair

#1942 Medium

Remove Stones to Minimize the Total

#1962 Medium

Find the Kth Largest Integer in the Array

#1985 Medium

Average Height of Buildings in Each Segment

#2015 Medium

Stock Price Fluctuation

#2034 Medium

Two Best Non-Overlapping Events

#2054 Medium

Minimum Cost to Reach City With Discounts

#2093 Medium

Find Subsequence of Length K With the Largest Sum

#2099 Medium

Sequentially Ordinal Rank Tracker

#2102 Hard

K Highest Ranked Items Within a Price Range

#2146 Medium

Minimum Difference in Sums After Removal of Elements

#2163 Hard

Construct String With Repeat Limit

#2182 Medium

Minimum Operations to Halve Array Sum

#2208 Medium

Largest Number After Digit Swaps by Parity

#2231 Easy

Maximum Product After K Increments

#2233 Medium

Maximum Total Importance of Roads

#2285 Medium

Minimum Obstacle Removal to Reach Corner

#2290 Hard

Minimum Sum of Squared Difference

#2333 Medium

Minimum Amount of Time to Fill Cups

#2335 Easy

Smallest Number in Infinite Set

#2336 Medium

Max Sum of a Pair With Equal Sum of Digits

#2342 Medium

Query Kth Smallest Trimmed Number

#2343 Medium

Minimum Deletions to Make Array Divisible

#2344 Hard

Design a Number Container System

#2349 Medium

Design a Food Rating System

#2353 Medium

Make Array Zero by Subtracting Equal Amounts

#2357 Easy

Find the K-Sum of an Array

#2386 Hard

Maximum Number of Robots Within Budget

#2398 Hard

Meeting Rooms III

#2402 Hard

Divide Intervals Into Minimum Number of Groups

#2406 Medium

Most Popular Video Creator

#2456 Medium

Total Cost to Hire K Workers

#2462 Medium

Minimum Cost to Buy Apples

#2473 Medium

Delete Greatest Value in Each Row

#2500 Easy

Maximum Number of Points From Grid Queries

#2503 Hard

Reward Top K Students

#2512 Medium

Maximum Subsequence Score

#2542 Medium

Put Marbles in Bags

#2551 Hard

Make the Prefix Sum Non-negative

#2599 Medium

Find Shortest Path with K Hops

#2714 Hard

Find the Closest Marked Node

#2737 Medium

Minimum Number of Coins for Fruits II

#2969 Hard

Minimum Operations to Exceed Threshold Value II

#3066 Medium

Lexicographically Minimum String After Removing Stars

#3170 Medium

Find Minimum Time to Reach Last Room I

#3341 Medium

Find Minimum Time to Reach Last Room II

#3342 Medium

Zero Array Transformation III

#3362 Medium

Design an Array Statistics Tracker

#3369 Hard

Design a 3D Binary Matrix with Efficient Layer Tracking

#3391 Medium

Design Task Manager

#3408 Medium

Minimum Operations to Make Subarray Elements Equal

#3422 Medium

Maximum Sum With at Most K Elements

#3462 Medium

Maximize Profit from Task Assignment

#3476 Medium

Find Time Required to Eliminate Bacterial Strains

#3506 Hard
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.