Medium
LeetCode 1410: HTML Entity Parser
·2 mins
LeetCode
Medium
Hash-Table
String
LeetCode 1410 note: scan left to right, trying all six entities at each position and skipping past a match; chained replace does not work
LeetCode 3613: Minimize Maximum Component Cost
·2 mins
LeetCode
Medium
Union-Find
Graph
Sorting
Binary-Search
LeetCode 3613 note: add edges from light to heavy; the weight when exactly k components remain is the answer, and 0 when n <= k
LeetCode 3612: Process String with Special Operations I
·2 mins
LeetCode
Medium
String
Simulation
LeetCode 3612 note: simulate the four operations with a list; put the “result is non-empty” check inside the * branch, or * gets appended as a letter
LeetCode 2410: Maximum Matching of Players With Trainers
·2 mins
LeetCode
Medium
Two-Pointers
Greedy
Sorting
Array
LeetCode 2410 note: sort both sides, then same-direction pointers match the weakest player with the smallest trainer that is good enough
LeetCode 1353: Maximum Number of Events That Can Be Attended
·2 mins
LeetCode
Medium
Heap
Greedy
Sorting
LeetCode 1353 note: each day, attend the event that ends earliest, using a min-heap of end days
LeetCode 3608: Minimum Time for K Connected Components
·2 mins
LeetCode
Medium
Union-Find
Graph
Sorting
Binary-Search
LeetCode 3608 note: add edges back from the largest time; the time of the first edge that drops the component count below k is the answer
LeetCode 3607: Power Grid Maintenance
·3 mins
LeetCode
Medium
Heap
Union-Find
Graph
Lazy-Deletion
LeetCode 3607 note: Union-Find groups, one min-heap per group, and lazy deletion for offline stations
LeetCode 3572: Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values
·2 mins
LeetCode
Medium
Greedy
Hash-Map
Sorting
LeetCode 3572 note: keep the largest y for each x, then take the three largest
LeetCode 721: Accounts Merge
·3 mins
LeetCode
Medium
Union-Find
LeetCode Problem Solving
LeetCode 990: Satisfiability of Equality Equations
·1 min
LeetCode
Daily
Medium
Union-Find
LeetCode Problem Solving
LeetCode 947: Most Stones Removed with Same Row or Column
·3 mins
LeetCode
Medium
Union-Find
LeetCode Problem Solving
LeetCode 200: Number of Islands
·1 min
LeetCode
Medium
Dfs
LeetCode Problem Solving