Skip to content

LeetCode 08xx

LeetCode practice notes for problems 800 through 899, including A clear explanation of finding the closest shorthand RGB color by rounding each color channel to the nearest repeated hexadecimal pair.

#TitleDifficultyDescription
800LeetCode 800: Similar RGB ColorEasyA clear explanation of finding the closest shorthand RGB color by rounding each color channel to the nearest repeated hexadecimal pair.
801LeetCode 801: Minimum Swaps To Make Sequences IncreasingMediumA dynamic programming solution for finding the minimum number of same-index swaps needed to make two arrays strictly increasing.
802LeetCode 802: Find Eventual Safe StatesMediumA graph traversal solution for finding all nodes that cannot reach a directed cycle.
803LeetCode 803: Bricks Falling When HitHardA reverse simulation and union-find solution for counting how many bricks fall after each hit.
804LeetCode 804: Unique Morse Code WordsEasyA set-based solution for counting how many different Morse code transformations appear among a list of words.
805LeetCode 805: Split Array With Same AverageHardA dynamic programming solution for deciding whether an array can be split into two non-empty groups with the same average.
806LeetCode 806: Number of Lines To Write StringEasyA simple simulation solution for counting how many 100-pixel lines are needed to write a string.
807LeetCode 807: Max Increase to Keep City SkylineMediumA greedy solution for increasing building heights as much as possible while preserving every skyline view.
808LeetCode 808: Soup ServingsMediumA probability dynamic programming solution for computing whether soup A empties before soup B, with an early return for large input.
809LeetCode 809: Expressive WordsMediumA two-pointer group comparison solution for counting how many words can be stretched to match a target string.
810LeetCode 810: Chalkboard XOR GameHardA math and bit manipulation solution for deciding whether Alice wins the XOR removal game.
811LeetCode 811: Subdomain Visit CountMediumA hash map solution for accumulating visit counts across domains and all of their parent subdomains.
812LeetCode 812: Largest Triangle AreaEasyA geometry solution for finding the largest triangle area by checking every triplet of points with the cross product formula.
813LeetCode 813: Largest Sum of AveragesMediumA dynamic programming and prefix sum solution for partitioning an array into adjacent groups with maximum total average.
814LeetCode 814: Binary Tree PruningMediumA postorder DFS solution for removing every binary tree subtree that does not contain a 1.
815LeetCode 815: Bus RoutesHardA BFS solution for finding the minimum number of buses needed to travel from a source stop to a target stop.
816LeetCode 816: Ambiguous CoordinatesMediumAn enumeration solution for reconstructing all valid coordinate pairs after commas, spaces, and decimal points were removed.
817LeetCode 817: Linked List ComponentsMediumA hash set and linked list traversal solution for counting consecutive components whose values appear in nums.
818LeetCode 818: Race CarHardA dynamic programming solution for finding the shortest instruction sequence that drives a race car to the target position.
819LeetCode 819: Most Common WordEasyA hash map and string parsing solution for finding the most frequent non-banned word in a paragraph.
820LeetCode 820: Short Encoding of WordsMediumA suffix-removal solution for finding the shortest reference string that can encode every word.
821LeetCode 821: Shortest Distance to a CharacterEasyA two-pass solution for computing the shortest distance from each index to the nearest occurrence of a target character.
822LeetCode 822: Card Flipping GameMediumA hash set solution for finding the smallest number that can be hidden from all front-facing cards.
823LeetCode 823: Binary Trees With FactorsMediumA dynamic programming solution for counting binary trees where every non-leaf node is the product of its children.
824LeetCode 824: Goat LatinEasyA string simulation solution for converting each word in a sentence into Goat Latin.
825LeetCode 825: Friends Of Appropriate AgesMediumA counting solution for computing how many directed friend requests are allowed by age rules.
826LeetCode 826: Most Profit Assigning WorkMediumA clear explanation of the Most Profit Assigning Work problem using sorting, greedy choice, and two pointers.
827LeetCode 827: Making A Large IslandHardA clear explanation of the Making A Large Island problem using connected component labeling and island size lookup.
828LeetCode 828: Count Unique Characters of All Substrings of a Given StringHardA clear explanation of Count Unique Characters of All Substrings using contribution counting with previous and next occurrences.
829LeetCode 829: Consecutive Numbers SumHardA clear explanation of the Consecutive Numbers Sum problem using arithmetic series formulas and divisibility analysis.
830LeetCode 830: Positions of Large GroupsEasyA clear explanation of the Positions of Large Groups problem using a simple two-pointer scan.
831LeetCode 831: Masking Personal InformationMediumA clear explanation of the Masking Personal Information problem using string parsing and format-specific masking rules.
832LeetCode 832: Flipping an ImageEasyA clear explanation of the Flipping an Image problem using row reversal, bit inversion, and an in-place two-pointer method.
833LeetCode 833: Find And Replace in StringMediumA clear explanation of the Find And Replace in String problem using simultaneous replacement, source matching, and a replacement map.
834LeetCode 834: Sum of Distances in TreeHardA clear explanation of the Sum of Distances in Tree problem using tree DP, subtree sizes, and rerooting.
835LeetCode 835: Image OverlapMediumA clear explanation of the Image Overlap problem using translation vectors and frequency counting.
836LeetCode 836: Rectangle OverlapEasyA clear explanation of the Rectangle Overlap problem using axis projections and positive intersection area.
837LeetCode 837: New 21 GameMediumA clear explanation of the New 21 Game problem using probability dynamic programming and a sliding window sum.
838LeetCode 838: Push DominoesMediumA clear explanation of the Push Dominoes problem using force propagation and a two-pass scan.
839LeetCode 839: Similar String GroupsHardA clear explanation of the Similar String Groups problem using graph connectivity and union-find.
840LeetCode 840: Magic Squares In GridMediumA clear explanation of the Magic Squares In Grid problem using fixed-size subgrid validation.
841LeetCode 841: Keys and RoomsMediumA clear explanation of the Keys and Rooms problem using graph traversal from room 0.
842LeetCode 842: Split Array into Fibonacci SequenceMediumA clear explanation of the Split Array into Fibonacci Sequence problem using backtracking, leading-zero checks, and 32-bit integer limits.
843LeetCode 843: Guess the WordHardA clear explanation of the Guess the Word interactive problem using candidate filtering and minimax-style guessing.
844LeetCode 844: Backspace String CompareEasyA clear explanation of the Backspace String Compare problem using stack simulation and an O(1) space two-pointer scan.
845LeetCode 845: Longest Mountain in ArrayMediumA clear explanation of the Longest Mountain in Array problem using peak detection and two-pointer expansion.
846LeetCode 846: Hand of StraightsMediumA clear explanation of the Hand of Straights problem using sorting, frequency counting, and greedy grouping.
847LeetCode 847: Shortest Path Visiting All NodesHardA clear explanation of the Shortest Path Visiting All Nodes problem using multi-source BFS and bitmask state compression.
848LeetCode 848: Shifting LettersMediumA clear explanation of the Shifting Letters problem using suffix sums and modulo arithmetic.
849LeetCode 849: Maximize Distance to Closest PersonMediumA clear explanation of the Maximize Distance to Closest Person problem using gaps between occupied seats.
850LeetCode 850: Rectangle Area IIHardA clear explanation of the Rectangle Area II problem using sweep line and merged active y-intervals.
851LeetCode 851: Loud and RichMediumA clear explanation of Loud and Rich using graph traversal, DFS, and memoization.
852LeetCode 852: Peak Index in a Mountain ArrayMediumA clear explanation of finding the peak index in a mountain array using binary search.
853LeetCode 853: Car FleetMediumA clear explanation of counting car fleets by sorting cars by position and tracking arrival times.
854LeetCode 854: K-Similar StringsHardA clear explanation of finding the minimum number of swaps needed to transform one anagram string into another using BFS.
855LeetCode 855: Exam RoomMediumA clear explanation of simulating an exam room by maintaining occupied seats in sorted order.
856LeetCode 856: Score of ParenthesesMediumA clear explanation of scoring a balanced parentheses string using depth counting.
857LeetCode 857: Minimum Cost to Hire K WorkersHardA clear explanation of hiring exactly k workers with minimum total cost using wage-to-quality ratios, sorting, and a max heap.
858LeetCode 858: Mirror ReflectionMediumA clear explanation of Mirror Reflection using room unfolding, least common multiples, and parity.
859LeetCode 859: Buddy StringsEasyA clear explanation of checking whether one swap in a string can make it equal to another string.
860LeetCode 860: Lemonade ChangeEasyA clear explanation of Lemonade Change using greedy simulation and bill counting.
861LeetCode 861: Score After Flipping MatrixMediumA clear explanation of maximizing a binary matrix score using greedy row and column flips.
862LeetCode 862: Shortest Subarray with Sum at Least KHardA clear explanation of finding the shortest non-empty subarray with sum at least k using prefix sums and a monotonic deque.
863LeetCode 863: All Nodes Distance K in Binary TreeMediumA clear explanation of finding all binary tree nodes at distance k from a target node by treating the tree as an undirected graph.
864LeetCode 864: Shortest Path to Get All KeysHardA clear explanation of finding the minimum moves to collect all keys in a grid using BFS with key bitmasks.
865LeetCode 865: Smallest Subtree with all the Deepest NodesMediumA clear explanation of finding the smallest subtree that contains all deepest nodes using bottom-up DFS.
866LeetCode 866: Prime PalindromeMediumA clear explanation of finding the smallest prime palindrome greater than or equal to n by generating odd-length palindromes and testing primality.
867LeetCode 867: Transpose MatrixEasyA clear explanation of transposing a matrix by swapping row and column indices.
868LeetCode 868: Binary GapEasyA clear explanation of finding the maximum distance between adjacent set bits in a binary representation.
869LeetCode 869: Reordered Power of 2MediumA clear explanation of checking whether the digits of a number can be reordered to form a power of two using digit frequency signatures.
870LeetCode 870: Advantage ShuffleMediumA clear explanation of maximizing the advantage of one array over another using sorting, greedy matching, and two pointers.
871LeetCode 871: Minimum Number of Refueling StopsHardA clear explanation of minimizing refueling stops using a greedy max heap over reachable stations.
872LeetCode 872: Leaf-Similar TreesEasyA clear explanation of comparing two binary trees by collecting their leaf value sequences with DFS.
873LeetCode 873: Length of Longest Fibonacci SubsequenceMediumA clear explanation of finding the longest Fibonacci-like subsequence using dynamic programming and value-to-index lookup.
874LeetCode 874: Walking Robot SimulationMediumA clear explanation of simulating robot movement on an infinite grid using direction vectors and obstacle lookup.
875LeetCode 875: Koko Eating BananasMediumA clear explanation of finding the minimum banana-eating speed using binary search on the answer.
876LeetCode 876: Middle of the Linked ListEasyA clear explanation of finding the middle node of a singly linked list using slow and fast pointers.
877LeetCode 877: Stone GameMediumA clear explanation of the Stone Game problem using game theory and interval dynamic programming.
878LeetCode 878: Nth Magical NumberHardA clear explanation of finding the nth magical number using binary search, greatest common divisor, least common multiple, and inclusion-exclusion.
879LeetCode 879: Profitable SchemesHardA clear explanation of counting profitable crime schemes using 0/1 knapsack dynamic programming with members and profit states.
880LeetCode 880: Decoded String at IndexMediumA clear explanation of finding the kth character in a decoded string without building the full decoded string.
881LeetCode 881: Boats to Save PeopleMediumA clear explanation of minimizing rescue boats using sorting, greedy choice, and two pointers.
882LeetCode 882: Reachable Nodes In Subdivided GraphHardA clear explanation of counting reachable original and subdivided nodes using Dijkstra’s shortest path algorithm.
883LeetCode 883: Projection Area of 3D ShapesEasyA clear explanation of computing the projection areas of stacked cubes from top, front, and side views.
884LeetCode 884: Uncommon Words from Two SentencesEasyA clear explanation of finding uncommon words by counting word frequencies across both sentences.
885LeetCode 885: Spiral Matrix IIIMediumA clear explanation of generating grid coordinates in an outward clockwise spiral using simulation.
886LeetCode 886: Possible BipartitionMediumA clear explanation of checking whether people can be split into two groups using graph coloring and bipartite graph detection.
887LeetCode 887: Super Egg DropHardA clear explanation of finding the minimum worst-case number of moves using dynamic programming over eggs and moves.
888LeetCode 888: Fair Candy SwapEasyA clear explanation of finding one candy box swap that makes Alice and Bob have equal total candies.
889LeetCode 889: Construct Binary Tree from Preorder and Postorder TraversalMediumA clear explanation of reconstructing a binary tree from preorder and postorder traversals using recursion and index ranges.
890LeetCode 890: Find and Replace PatternMediumA clear explanation of finding words that match a pattern using bijective character mapping.
891LeetCode 891: Sum of Subsequence WidthsHardA clear explanation of summing subsequence widths by sorting and counting each element as a maximum and minimum.
892LeetCode 892: Surface Area of 3D ShapesEasyA clear explanation of computing the exposed surface area of stacked cubes by adding tower area and subtracting shared faces.
893LeetCode 893: Groups of Special-Equivalent StringsMediumA clear explanation of counting special-equivalent string groups by building canonical signatures from even and odd positions.
894LeetCode 894: All Possible Full Binary TreesMediumA clear explanation of generating all full binary trees with n nodes using recursion and memoization.
895LeetCode 895: Maximum Frequency StackHardA clear explanation of designing a stack that pops the most frequent value, breaking ties by most recent insertion.
896LeetCode 896: Monotonic ArrayEasyA clear explanation of checking whether an array is monotonic using one pass and direction flags.
897LeetCode 897: Increasing Order Search TreeEasyA clear explanation of rearranging a binary search tree into an increasing right-only tree using inorder traversal.
898LeetCode 898: Bitwise ORs of SubarraysMediumA clear explanation of counting distinct bitwise OR results from all non-empty subarrays using rolling sets.
899LeetCode 899: Orderly QueueHardA clear explanation of finding the lexicographically smallest string after queue operations using rotation and sorting.
LeetCode 800: Similar RGB ColorA clear explanation of finding the closest shorthand RGB color by rounding each color channel to the nearest repeated hexadecimal pair.
4 min
LeetCode 801: Minimum Swaps To Make Sequences IncreasingA dynamic programming solution for finding the minimum number of same-index swaps needed to make two arrays strictly increasing.
6 min
LeetCode 802: Find Eventual Safe StatesA graph traversal solution for finding all nodes that cannot reach a directed cycle.
5 min
LeetCode 803: Bricks Falling When HitA reverse simulation and union-find solution for counting how many bricks fall after each hit.
8 min
LeetCode 804: Unique Morse Code WordsA set-based solution for counting how many different Morse code transformations appear among a list of words.
4 min
LeetCode 805: Split Array With Same AverageA dynamic programming solution for deciding whether an array can be split into two non-empty groups with the same average.
5 min
LeetCode 806: Number of Lines To Write StringA simple simulation solution for counting how many 100-pixel lines are needed to write a string.
5 min
LeetCode 807: Max Increase to Keep City SkylineA greedy solution for increasing building heights as much as possible while preserving every skyline view.
4 min
LeetCode 808: Soup ServingsA probability dynamic programming solution for computing whether soup A empties before soup B, with an early return for large input.
5 min
LeetCode 809: Expressive WordsA two-pointer group comparison solution for counting how many words can be stretched to match a target string.
5 min
LeetCode 810: Chalkboard XOR GameA math and bit manipulation solution for deciding whether Alice wins the XOR removal game.
5 min
LeetCode 811: Subdomain Visit CountA hash map solution for accumulating visit counts across domains and all of their parent subdomains.
4 min
LeetCode 812: Largest Triangle AreaA geometry solution for finding the largest triangle area by checking every triplet of points with the cross product formula.
4 min
LeetCode 813: Largest Sum of AveragesA dynamic programming and prefix sum solution for partitioning an array into adjacent groups with maximum total average.
5 min
LeetCode 814: Binary Tree PruningA postorder DFS solution for removing every binary tree subtree that does not contain a 1.
5 min
LeetCode 815: Bus RoutesA BFS solution for finding the minimum number of buses needed to travel from a source stop to a target stop.
5 min
LeetCode 816: Ambiguous CoordinatesAn enumeration solution for reconstructing all valid coordinate pairs after commas, spaces, and decimal points were removed.
6 min
LeetCode 817: Linked List ComponentsA hash set and linked list traversal solution for counting consecutive components whose values appear in nums.
5 min
LeetCode 818: Race CarA dynamic programming solution for finding the shortest instruction sequence that drives a race car to the target position.
6 min
LeetCode 819: Most Common WordA hash map and string parsing solution for finding the most frequent non-banned word in a paragraph.
4 min
LeetCode 820: Short Encoding of WordsA suffix-removal solution for finding the shortest reference string that can encode every word.
4 min
LeetCode 821: Shortest Distance to a CharacterA two-pass solution for computing the shortest distance from each index to the nearest occurrence of a target character.
4 min
LeetCode 822: Card Flipping GameA hash set solution for finding the smallest number that can be hidden from all front-facing cards.
5 min
LeetCode 823: Binary Trees With FactorsA dynamic programming solution for counting binary trees where every non-leaf node is the product of its children.
5 min
LeetCode 824: Goat LatinA string simulation solution for converting each word in a sentence into Goat Latin.
4 min
LeetCode 825: Friends Of Appropriate AgesA counting solution for computing how many directed friend requests are allowed by age rules.
5 min
LeetCode 826: Most Profit Assigning WorkA clear explanation of the Most Profit Assigning Work problem using sorting, greedy choice, and two pointers.
6 min
LeetCode 827: Making A Large IslandA clear explanation of the Making A Large Island problem using connected component labeling and island size lookup.
8 min
LeetCode 828: Count Unique Characters of All Substrings of a Given StringA clear explanation of Count Unique Characters of All Substrings using contribution counting with previous and next occurrences.
5 min
LeetCode 829: Consecutive Numbers SumA clear explanation of the Consecutive Numbers Sum problem using arithmetic series formulas and divisibility analysis.
5 min
LeetCode 830: Positions of Large GroupsA clear explanation of the Positions of Large Groups problem using a simple two-pointer scan.
5 min
LeetCode 831: Masking Personal InformationA clear explanation of the Masking Personal Information problem using string parsing and format-specific masking rules.
5 min
LeetCode 832: Flipping an ImageA clear explanation of the Flipping an Image problem using row reversal, bit inversion, and an in-place two-pointer method.
6 min
LeetCode 833: Find And Replace in StringA clear explanation of the Find And Replace in String problem using simultaneous replacement, source matching, and a replacement map.
6 min
LeetCode 834: Sum of Distances in TreeA clear explanation of the Sum of Distances in Tree problem using tree DP, subtree sizes, and rerooting.
6 min
LeetCode 835: Image OverlapA clear explanation of the Image Overlap problem using translation vectors and frequency counting.
6 min
LeetCode 836: Rectangle OverlapA clear explanation of the Rectangle Overlap problem using axis projections and positive intersection area.
5 min
LeetCode 837: New 21 GameA clear explanation of the New 21 Game problem using probability dynamic programming and a sliding window sum.
6 min
LeetCode 838: Push DominoesA clear explanation of the Push Dominoes problem using force propagation and a two-pass scan.
5 min
LeetCode 839: Similar String GroupsA clear explanation of the Similar String Groups problem using graph connectivity and union-find.
6 min
LeetCode 840: Magic Squares In GridA clear explanation of the Magic Squares In Grid problem using fixed-size subgrid validation.
6 min
LeetCode 841: Keys and RoomsA clear explanation of the Keys and Rooms problem using graph traversal from room 0.
5 min
LeetCode 842: Split Array into Fibonacci SequenceA clear explanation of the Split Array into Fibonacci Sequence problem using backtracking, leading-zero checks, and 32-bit integer limits.
7 min
LeetCode 843: Guess the WordA clear explanation of the Guess the Word interactive problem using candidate filtering and minimax-style guessing.
6 min
LeetCode 844: Backspace String CompareA clear explanation of the Backspace String Compare problem using stack simulation and an O(1) space two-pointer scan.
6 min
LeetCode 845: Longest Mountain in ArrayA clear explanation of the Longest Mountain in Array problem using peak detection and two-pointer expansion.
5 min
LeetCode 846: Hand of StraightsA clear explanation of the Hand of Straights problem using sorting, frequency counting, and greedy grouping.
6 min
LeetCode 847: Shortest Path Visiting All NodesA clear explanation of the Shortest Path Visiting All Nodes problem using multi-source BFS and bitmask state compression.
7 min
LeetCode 848: Shifting LettersA clear explanation of the Shifting Letters problem using suffix sums and modulo arithmetic.
5 min
LeetCode 849: Maximize Distance to Closest PersonA clear explanation of the Maximize Distance to Closest Person problem using gaps between occupied seats.
6 min
LeetCode 850: Rectangle Area IIA clear explanation of the Rectangle Area II problem using sweep line and merged active y-intervals.
7 min
LeetCode 851: Loud and RichA clear explanation of Loud and Rich using graph traversal, DFS, and memoization.
6 min
LeetCode 852: Peak Index in a Mountain ArrayA clear explanation of finding the peak index in a mountain array using binary search.
4 min
LeetCode 853: Car FleetA clear explanation of counting car fleets by sorting cars by position and tracking arrival times.
6 min
LeetCode 854: K-Similar StringsA clear explanation of finding the minimum number of swaps needed to transform one anagram string into another using BFS.
6 min
LeetCode 855: Exam RoomA clear explanation of simulating an exam room by maintaining occupied seats in sorted order.
7 min
LeetCode 856: Score of ParenthesesA clear explanation of scoring a balanced parentheses string using depth counting.
4 min
LeetCode 857: Minimum Cost to Hire K WorkersA clear explanation of hiring exactly k workers with minimum total cost using wage-to-quality ratios, sorting, and a max heap.
6 min
LeetCode 858: Mirror ReflectionA clear explanation of Mirror Reflection using room unfolding, least common multiples, and parity.
5 min
LeetCode 859: Buddy StringsA clear explanation of checking whether one swap in a string can make it equal to another string.
5 min
LeetCode 860: Lemonade ChangeA clear explanation of Lemonade Change using greedy simulation and bill counting.
5 min
LeetCode 861: Score After Flipping MatrixA clear explanation of maximizing a binary matrix score using greedy row and column flips.
5 min
LeetCode 862: Shortest Subarray with Sum at Least KA clear explanation of finding the shortest non-empty subarray with sum at least k using prefix sums and a monotonic deque.
6 min
LeetCode 863: All Nodes Distance K in Binary TreeA clear explanation of finding all binary tree nodes at distance k from a target node by treating the tree as an undirected graph.
6 min
LeetCode 864: Shortest Path to Get All KeysA clear explanation of finding the minimum moves to collect all keys in a grid using BFS with key bitmasks.
6 min
LeetCode 865: Smallest Subtree with all the Deepest NodesA clear explanation of finding the smallest subtree that contains all deepest nodes using bottom-up DFS.
6 min
LeetCode 866: Prime PalindromeA clear explanation of finding the smallest prime palindrome greater than or equal to n by generating odd-length palindromes and testing primality.
5 min
LeetCode 867: Transpose MatrixA clear explanation of transposing a matrix by swapping row and column indices.
4 min
LeetCode 868: Binary GapA clear explanation of finding the maximum distance between adjacent set bits in a binary representation.
4 min
LeetCode 869: Reordered Power of 2A clear explanation of checking whether the digits of a number can be reordered to form a power of two using digit frequency signatures.
4 min
LeetCode 870: Advantage ShuffleA clear explanation of maximizing the advantage of one array over another using sorting, greedy matching, and two pointers.
5 min
LeetCode 871: Minimum Number of Refueling StopsA clear explanation of minimizing refueling stops using a greedy max heap over reachable stations.
6 min
LeetCode 872: Leaf-Similar TreesA clear explanation of comparing two binary trees by collecting their leaf value sequences with DFS.
4 min
LeetCode 873: Length of Longest Fibonacci SubsequenceA clear explanation of finding the longest Fibonacci-like subsequence using dynamic programming and value-to-index lookup.
5 min
LeetCode 874: Walking Robot SimulationA clear explanation of simulating robot movement on an infinite grid using direction vectors and obstacle lookup.
6 min
LeetCode 875: Koko Eating BananasA clear explanation of finding the minimum banana-eating speed using binary search on the answer.
5 min
LeetCode 876: Middle of the Linked ListA clear explanation of finding the middle node of a singly linked list using slow and fast pointers.
5 min
LeetCode 877: Stone GameA clear explanation of the Stone Game problem using game theory and interval dynamic programming.
6 min
LeetCode 878: Nth Magical NumberA clear explanation of finding the nth magical number using binary search, greatest common divisor, least common multiple, and inclusion-exclusion.
6 min
LeetCode 879: Profitable SchemesA clear explanation of counting profitable crime schemes using 0/1 knapsack dynamic programming with members and profit states.
6 min
LeetCode 880: Decoded String at IndexA clear explanation of finding the kth character in a decoded string without building the full decoded string.
6 min
LeetCode 881: Boats to Save PeopleA clear explanation of minimizing rescue boats using sorting, greedy choice, and two pointers.
5 min
LeetCode 882: Reachable Nodes In Subdivided GraphA clear explanation of counting reachable original and subdivided nodes using Dijkstra's shortest path algorithm.
7 min
LeetCode 883: Projection Area of 3D ShapesA clear explanation of computing the projection areas of stacked cubes from top, front, and side views.
5 min
LeetCode 884: Uncommon Words from Two SentencesA clear explanation of finding uncommon words by counting word frequencies across both sentences.
4 min
LeetCode 885: Spiral Matrix IIIA clear explanation of generating grid coordinates in an outward clockwise spiral using simulation.
6 min
LeetCode 886: Possible BipartitionA clear explanation of checking whether people can be split into two groups using graph coloring and bipartite graph detection.
6 min
LeetCode 887: Super Egg DropA clear explanation of finding the minimum worst-case number of moves using dynamic programming over eggs and moves.
6 min
LeetCode 888: Fair Candy SwapA clear explanation of finding one candy box swap that makes Alice and Bob have equal total candies.
6 min
LeetCode 889: Construct Binary Tree from Preorder and Postorder TraversalA clear explanation of reconstructing a binary tree from preorder and postorder traversals using recursion and index ranges.
7 min
LeetCode 890: Find and Replace PatternA clear explanation of finding words that match a pattern using bijective character mapping.
5 min
LeetCode 891: Sum of Subsequence WidthsA clear explanation of summing subsequence widths by sorting and counting each element as a maximum and minimum.
5 min
LeetCode 892: Surface Area of 3D ShapesA clear explanation of computing the exposed surface area of stacked cubes by adding tower area and subtracting shared faces.
5 min
LeetCode 893: Groups of Special-Equivalent StringsA clear explanation of counting special-equivalent string groups by building canonical signatures from even and odd positions.
5 min
LeetCode 894: All Possible Full Binary TreesA clear explanation of generating all full binary trees with n nodes using recursion and memoization.
6 min
LeetCode 895: Maximum Frequency StackA clear explanation of designing a stack that pops the most frequent value, breaking ties by most recent insertion.
5 min
LeetCode 896: Monotonic ArrayA clear explanation of checking whether an array is monotonic using one pass and direction flags.
5 min
LeetCode 897: Increasing Order Search TreeA clear explanation of rearranging a binary search tree into an increasing right-only tree using inorder traversal.
5 min
LeetCode 898: Bitwise ORs of SubarraysA clear explanation of counting distinct bitwise OR results from all non-empty subarrays using rolling sets.
5 min
LeetCode 899: Orderly QueueA clear explanation of finding the lexicographically smallest string after queue operations using rotation and sorting.
4 min