Skip to content

LeetCode 07xx

LeetCode practice notes for problems 700 through 799, including Search for a target value in a binary search tree and return the subtree rooted at the matching node.

#TitleDifficultyDescription
700LeetCode 700: Search in a Binary Search TreeEasySearch for a target value in a binary search tree and return the subtree rooted at the matching node.
701LeetCode 701: Insert into a Binary Search TreeMediumA clear explanation of inserting a value into a binary search tree using recursive and iterative traversal.
702LeetCode 702: Search in a Sorted Array of Unknown SizeMediumA clear explanation of searching in a sorted array when the array length is hidden behind an ArrayReader interface.
703LeetCode 703: Kth Largest Element in a StreamEasyA clear explanation of maintaining the kth largest element in a stream using a fixed-size min heap.
704LeetCode 704: Binary SearchEasyA clear explanation of searching for a target in a sorted array using binary search.
705LeetCode 705: Design HashSetEasyA clear explanation of designing a hash set without using built-in hash table libraries.
706LeetCode 706: Design HashMapEasyA clear explanation of designing a hash map without using built-in hash table libraries.
707LeetCode 707: Design Linked ListMediumA clear explanation of implementing a linked list from scratch using nodes, a dummy head, and a size counter.
708LeetCode 708: Insert into a Sorted Circular Linked ListMediumA clear explanation of inserting a value into a sorted circular linked list while preserving the circular sorted order.
709LeetCode 709: To Lower CaseEasyA clear explanation of converting uppercase ASCII letters to lowercase by scanning the string once.
710LeetCode 710: Random Pick with BlacklistHardA clear explanation of selecting a uniformly random integer while excluding blacklisted values using remapping and hashing.
711LeetCode 711: Number of Distinct Islands IIHardA clear explanation of counting distinct island shapes under rotation and reflection using normalization and geometric transformations.
712LeetCode 712: Minimum ASCII Delete Sum for Two StringsMediumA clear explanation of using dynamic programming to minimize the ASCII cost of deletions needed to make two strings equal.
713LeetCode 713: Subarray Product Less Than KMediumA clear explanation of counting contiguous subarrays whose product is less than k using a sliding window.
714LeetCode 714: Best Time to Buy and Sell Stock with Transaction FeeMediumA clear explanation of maximizing stock trading profit with unlimited transactions and a fixed transaction fee using dynamic programming.
715LeetCode 715: Range ModuleHardA clear explanation of designing a range module that can add, query, and remove half-open intervals.
716LeetCode 716: Max StackHardA clear explanation of designing a stack that supports push, pop, top, peekMax, and popMax.
717LeetCode 717: 1-bit and 2-bit CharactersEasyA clear explanation of determining whether the last character must be a one-bit character using greedy parsing.
718LeetCode 718: Maximum Length of Repeated SubarrayMediumA clear explanation of finding the longest common contiguous subarray using dynamic programming.
719LeetCode 719: Find K-th Smallest Pair DistanceHardA clear explanation of finding the kth smallest pair distance using sorting, binary search on the answer, and a two-pointer count.
720LeetCode 720: Longest Word in DictionaryEasyA clear explanation of finding the longest buildable word using sorting and a hash set.
721LeetCode 721: Accounts MergeMediumA clear explanation of merging accounts that share emails using union find and sorted email groups.
722LeetCode 722: Remove CommentsMediumA clear explanation of removing line comments and block comments from source code using a state machine.
723LeetCode 723: Candy CrushMediumA clear explanation of restoring a Candy Crush board to a stable state using repeated marking, crushing, and gravity simulation.
724LeetCode 724: Find Pivot IndexEasyA clear explanation of finding the leftmost pivot index using prefix sums and a running left sum.
725LeetCode 725: Split Linked List in PartsMediumA clear explanation of splitting a linked list into k consecutive parts with sizes as equal as possible.
726LeetCode 726: Number of AtomsHardParse a chemical formula with nested parentheses, atom names, and multipliers using recursive descent.
727LeetCode 727: Minimum Window SubsequenceHardFind the shortest substring of s1 that contains s2 as a subsequence using dynamic programming.
728LeetCode 728: Self Dividing NumbersEasyCheck each number in a range by extracting its digits and testing whether every digit divides the original number.
729LeetCode 729: My Calendar IMediumImplement a calendar that accepts a booking only when it does not overlap with any existing booking.
730LeetCode 730: Count Different Palindromic SubsequencesHardCount distinct non-empty palindromic subsequences using interval dynamic programming and duplicate handling.
731LeetCode 731: My Calendar IIMediumAllow double bookings but reject triple bookings using overlap interval tracking.
732LeetCode 732: My Calendar IIIHardTrack the maximum number of overlapping calendar events using a sweep line difference map.
733LeetCode 733: Flood FillEasyRecolor the connected component containing the starting pixel using depth-first search.
734LeetCode 734: Sentence SimilarityEasyCheck whether two word arrays are sentence-similar using a hash set of symmetric similar word pairs.
735LeetCode 735: Asteroid CollisionMediumSimulate asteroid collisions using a stack that keeps the surviving asteroids in order.
736LeetCode 736: Parse Lisp ExpressionHardEvaluate a Lisp-like expression with integers, variables, let bindings, addition, multiplication, and lexical scope.
737LeetCode 737: Sentence Similarity IIMediumCheck sentence similarity with transitive word relationships using union-find.
738LeetCode 738: Monotone Increasing DigitsMediumFind the largest number less than or equal to n whose digits are monotone increasing using a greedy digit adjustment.
739LeetCode 739: Daily TemperaturesMediumFind how many days each temperature must wait for a warmer future day using a monotonic stack.
740LeetCode 740: Delete and EarnMediumTransform the problem into House Robber dynamic programming by grouping equal values into total points.
741LeetCode 741: Cherry PickupHardMaximize cherries collected on a round trip by converting the problem into two simultaneous forward paths and solving with dynamic programming.
742LeetCode 742: Closest Leaf in a Binary TreeMediumFind the nearest leaf to a target node by converting the tree into an undirected graph and running breadth-first search.
743LeetCode 743: Network Delay TimeMediumFind the time needed for a signal to reach all nodes in a directed weighted graph using Dijkstra’s algorithm.
744LeetCode 744: Find Smallest Letter Greater Than TargetEasyUse binary search to find the smallest character strictly greater than the target with wraparound handling.
745LeetCode 745: Prefix and Suffix SearchHardSupport fast prefix and suffix queries by indexing every prefix-suffix combination with the largest word index.
746LeetCode 746: Min Cost Climbing StairsEasyFind the minimum cost to reach the top of the staircase using dynamic programming.
747LeetCode 747: Largest Number At Least Twice of OthersEasyFind whether the maximum element is at least twice every other element using a single linear scan.
748LeetCode 748: Shortest Completing WordEasyFind the shortest word that contains all required license plate letters using frequency counting.
749LeetCode 749: Contain VirusHardSimulate virus containment by repeatedly quarantining the most dangerous infected region and spreading the remaining regions.
750LeetCode 750: Number Of Corner RectanglesMediumCount axis-aligned rectangles whose four corners are 1 using column-pair frequency counting.
751LeetCode 751: IP to CIDRMediumA clear explanation of converting a range of IPv4 addresses into the shortest list of CIDR blocks using greedy bit manipulation.
752LeetCode 752: Open the LockMediumA clear explanation of solving Open the Lock using breadth-first search over lock states.
753LeetCode 753: Cracking the SafeHardA clear explanation of Cracking the Safe using a de Bruijn sequence and depth-first search over password states.
754LeetCode 754: Reach a NumberMediumA clear explanation of reaching a target on a number line using cumulative sums and parity.
755LeetCode 755: Pour WaterMediumA clear explanation of simulating water droplets over an elevation map by checking left first, then right.
756LeetCode 756: Pyramid Transition MatrixMediumA clear explanation of solving Pyramid Transition Matrix using backtracking and memoization over pyramid rows.
757LeetCode 757: Set Intersection Size At Least TwoHardA clear explanation of solving interval intersection constraints using greedy sorting and minimal point selection.
758LeetCode 758: Bold Words in StringEasyA clear explanation of marking matching substrings and merging overlapping bold ranges.
759LeetCode 759: Employee Free TimeHardA clear explanation of finding common free time by merging all employee busy intervals and returning the gaps.
760LeetCode 760: Find Anagram MappingsEasyA clear explanation of mapping each element in one array to a matching index in its anagram using a hash map.
761LeetCode 761: Special Binary StringHardA clear explanation of making a special binary string lexicographically largest using recursive decomposition and sorting.
762LeetCode 762: Prime Number of Set Bits in Binary RepresentationEasyA clear explanation of counting numbers whose binary representation has a prime number of set bits.
763LeetCode 763: Partition LabelsMediumA clear explanation of partitioning a string into the maximum number of parts so each character appears in at most one part.
764LeetCode 764: Largest Plus SignMediumA clear explanation of finding the largest plus sign in a mined grid using four directional dynamic programming scans.
765LeetCode 765: Couples Holding HandsHardA clear explanation of minimizing swaps so every couple sits together using greedy position tracking.
766LeetCode 766: Toeplitz MatrixEasyA clear explanation of checking whether every top-left to bottom-right diagonal in a matrix has the same value.
767LeetCode 767: Reorganize StringMediumA clear explanation of rearranging characters so no two adjacent characters are equal using a greedy max heap.
768LeetCode 768: Max Chunks To Make Sorted IIHardA clear explanation of splitting an array into the maximum number of chunks so sorting each chunk gives the fully sorted array.
769LeetCode 769: Max Chunks To Make SortedMediumA clear explanation of splitting a permutation into the maximum number of chunks using prefix maximums.
770LeetCode 770: Basic Calculator IVHardA clear explanation of simplifying algebraic expressions by parsing, substituting variables, and combining polynomial terms.
771LeetCode 771: Jewels and StonesEasyA clear explanation of counting how many stones are jewels using a hash set for fast membership checks.
772LeetCode 772: Basic Calculator IIIHardA clear explanation of evaluating arithmetic expressions with parentheses, precedence, and integer division.
773LeetCode 773: Sliding PuzzleHardA clear explanation of solving the 2 x 3 sliding puzzle using breadth-first search over board states.
774LeetCode 774: Minimize Max Distance to Gas StationHardA clear explanation of minimizing the largest adjacent gas-station distance using binary search on the answer.
775LeetCode 775: Global and Local InversionsMediumA clear explanation of checking whether every global inversion is also a local inversion using distance constraints.
776LeetCode 776: Split BSTMediumA clear explanation of splitting a binary search tree into two BSTs using recursion and pointer rewiring.
777LeetCode 777: Swap Adjacent in LR StringMediumA clear explanation of validating string transformation using two pointers and movement constraints.
778LeetCode 778: Swim in Rising WaterHardA clear explanation of finding the minimum time to reach the bottom-right cell using a priority queue and minimax path reasoning.
779LeetCode 779: K-th Symbol in GrammarMediumA clear explanation of finding the kth symbol in the grammar sequence using recursion and the parent-child relationship.
780LeetCode 780: Reaching PointsHardA clear explanation of checking whether one point can reach another by working backward with modulo.
781LeetCode 781: Rabbits in ForestMediumA clear explanation of finding the minimum possible number of rabbits using counting and greedy grouping.
782LeetCode 782: Transform to ChessboardHardA clear explanation of transforming a binary board into a chessboard using feasibility checks and minimum row and column swaps.
783LeetCode 783: Minimum Distance Between BST NodesEasyA clear explanation of finding the minimum difference between any two nodes in a BST using inorder traversal.
784LeetCode 784: Letter Case PermutationMediumA clear explanation of generating all strings formed by independently changing each letter to lowercase or uppercase.
785LeetCode 785: Is Graph Bipartite?MediumA clear explanation of checking whether an undirected graph can be split into two independent sets using graph coloring.
786LeetCode 786: K-th Smallest Prime FractionMediumA clear explanation of finding the kth smallest fraction from a sorted array using a min-heap.
787LeetCode 787: Cheapest Flights Within K StopsMediumA clear explanation of finding the cheapest flight route with at most k stops using bounded Bellman-Ford relaxation.
788LeetCode 788: Rotated DigitsMediumA clear explanation of counting good numbers after rotating every digit by 180 degrees.
789LeetCode 789: Escape The GhostsMediumA clear explanation of deciding whether escape is possible by comparing Manhattan distances to the target.
790LeetCode 790: Domino and Tromino TilingMediumA clear explanation of counting tilings of a 2 x n board using dominoes and L-shaped trominoes with dynamic programming.
791LeetCode 791: Custom Sort StringMediumA clear explanation of rearranging a string so that selected characters follow a custom order.
792LeetCode 792: Number of Matching SubsequencesMediumA clear explanation of counting how many words are subsequences of a string using waiting queues.
793LeetCode 793: Preimage Size of Factorial Zeroes FunctionHardA clear explanation of finding how many integers have exactly k trailing zeroes in their factorial.
794LeetCode 794: Valid Tic-Tac-Toe StateMediumA clear explanation of validating whether a Tic-Tac-Toe board can occur in a legal game.
795LeetCode 795: Number of Subarrays with Bounded MaximumMediumA clear explanation of counting contiguous subarrays whose maximum value lies inside a given inclusive range.
796LeetCode 796: Rotate StringEasyA clear explanation of checking whether one string can become another by repeated left rotations.
797LeetCode 797: All Paths From Source to TargetMediumA clear explanation of finding every path from node 0 to node n - 1 in a directed acyclic graph using DFS and backtracking.
798LeetCode 798: Smallest Rotation with Highest ScoreHardA clear explanation of finding the smallest rotation with maximum score using a difference array.
799LeetCode 799: Champagne TowerMediumA clear explanation of simulating overflow in a champagne glass pyramid using dynamic programming.
LeetCode 700: Search in a Binary Search TreeSearch for a target value in a binary search tree and return the subtree rooted at the matching node.
5 min
LeetCode 701: Insert into a Binary Search TreeA clear explanation of inserting a value into a binary search tree using recursive and iterative traversal.
6 min
LeetCode 702: Search in a Sorted Array of Unknown SizeA clear explanation of searching in a sorted array when the array length is hidden behind an ArrayReader interface.
6 min
LeetCode 703: Kth Largest Element in a StreamA clear explanation of maintaining the kth largest element in a stream using a fixed-size min heap.
6 min
LeetCode 704: Binary SearchA clear explanation of searching for a target in a sorted array using binary search.
5 min
LeetCode 705: Design HashSetA clear explanation of designing a hash set without using built-in hash table libraries.
6 min
LeetCode 706: Design HashMapA clear explanation of designing a hash map without using built-in hash table libraries.
6 min
LeetCode 707: Design Linked ListA clear explanation of implementing a linked list from scratch using nodes, a dummy head, and a size counter.
7 min
LeetCode 708: Insert into a Sorted Circular Linked ListA clear explanation of inserting a value into a sorted circular linked list while preserving the circular sorted order.
7 min
LeetCode 709: To Lower CaseA clear explanation of converting uppercase ASCII letters to lowercase by scanning the string once.
3 min
LeetCode 710: Random Pick with BlacklistA clear explanation of selecting a uniformly random integer while excluding blacklisted values using remapping and hashing.
5 min
LeetCode 711: Number of Distinct Islands IIA clear explanation of counting distinct island shapes under rotation and reflection using normalization and geometric transformations.
6 min
LeetCode 712: Minimum ASCII Delete Sum for Two StringsA clear explanation of using dynamic programming to minimize the ASCII cost of deletions needed to make two strings equal.
6 min
LeetCode 713: Subarray Product Less Than KA clear explanation of counting contiguous subarrays whose product is less than k using a sliding window.
6 min
LeetCode 714: Best Time to Buy and Sell Stock with Transaction FeeA clear explanation of maximizing stock trading profit with unlimited transactions and a fixed transaction fee using dynamic programming.
6 min
LeetCode 715: Range ModuleA clear explanation of designing a range module that can add, query, and remove half-open intervals.
7 min
LeetCode 716: Max StackA clear explanation of designing a stack that supports push, pop, top, peekMax, and popMax.
8 min
LeetCode 717: 1-bit and 2-bit CharactersA clear explanation of determining whether the last character must be a one-bit character using greedy parsing.
5 min
LeetCode 718: Maximum Length of Repeated SubarrayA clear explanation of finding the longest common contiguous subarray using dynamic programming.
6 min
LeetCode 719: Find K-th Smallest Pair DistanceA clear explanation of finding the kth smallest pair distance using sorting, binary search on the answer, and a two-pointer count.
6 min
LeetCode 720: Longest Word in DictionaryA clear explanation of finding the longest buildable word using sorting and a hash set.
5 min
LeetCode 721: Accounts MergeA clear explanation of merging accounts that share emails using union find and sorted email groups.
6 min
LeetCode 722: Remove CommentsA clear explanation of removing line comments and block comments from source code using a state machine.
7 min
LeetCode 723: Candy CrushA clear explanation of restoring a Candy Crush board to a stable state using repeated marking, crushing, and gravity simulation.
6 min
LeetCode 724: Find Pivot IndexA clear explanation of finding the leftmost pivot index using prefix sums and a running left sum.
5 min
LeetCode 725: Split Linked List in PartsA clear explanation of splitting a linked list into k consecutive parts with sizes as equal as possible.
6 min
LeetCode 726: Number of AtomsParse a chemical formula with nested parentheses, atom names, and multipliers using recursive descent.
7 min
LeetCode 727: Minimum Window SubsequenceFind the shortest substring of s1 that contains s2 as a subsequence using dynamic programming.
6 min
LeetCode 728: Self Dividing NumbersCheck each number in a range by extracting its digits and testing whether every digit divides the original number.
5 min
LeetCode 729: My Calendar IImplement a calendar that accepts a booking only when it does not overlap with any existing booking.
5 min
LeetCode 730: Count Different Palindromic SubsequencesCount distinct non-empty palindromic subsequences using interval dynamic programming and duplicate handling.
6 min
LeetCode 731: My Calendar IIAllow double bookings but reject triple bookings using overlap interval tracking.
5 min
LeetCode 732: My Calendar IIITrack the maximum number of overlapping calendar events using a sweep line difference map.
5 min
LeetCode 733: Flood FillRecolor the connected component containing the starting pixel using depth-first search.
5 min
LeetCode 734: Sentence SimilarityCheck whether two word arrays are sentence-similar using a hash set of symmetric similar word pairs.
5 min
LeetCode 735: Asteroid CollisionSimulate asteroid collisions using a stack that keeps the surviving asteroids in order.
5 min
LeetCode 736: Parse Lisp ExpressionEvaluate a Lisp-like expression with integers, variables, let bindings, addition, multiplication, and lexical scope.
6 min
LeetCode 737: Sentence Similarity IICheck sentence similarity with transitive word relationships using union-find.
6 min
LeetCode 738: Monotone Increasing DigitsFind the largest number less than or equal to n whose digits are monotone increasing using a greedy digit adjustment.
5 min
LeetCode 739: Daily TemperaturesFind how many days each temperature must wait for a warmer future day using a monotonic stack.
5 min
LeetCode 740: Delete and EarnTransform the problem into House Robber dynamic programming by grouping equal values into total points.
5 min
LeetCode 741: Cherry PickupMaximize cherries collected on a round trip by converting the problem into two simultaneous forward paths and solving with dynamic programming.
7 min
LeetCode 742: Closest Leaf in a Binary TreeFind the nearest leaf to a target node by converting the tree into an undirected graph and running breadth-first search.
5 min
LeetCode 743: Network Delay TimeFind the time needed for a signal to reach all nodes in a directed weighted graph using Dijkstra's algorithm.
5 min
LeetCode 744: Find Smallest Letter Greater Than TargetUse binary search to find the smallest character strictly greater than the target with wraparound handling.
4 min
LeetCode 745: Prefix and Suffix SearchSupport fast prefix and suffix queries by indexing every prefix-suffix combination with the largest word index.
4 min
LeetCode 746: Min Cost Climbing StairsFind the minimum cost to reach the top of the staircase using dynamic programming.
5 min
LeetCode 747: Largest Number At Least Twice of OthersFind whether the maximum element is at least twice every other element using a single linear scan.
4 min
LeetCode 748: Shortest Completing WordFind the shortest word that contains all required license plate letters using frequency counting.
5 min
LeetCode 749: Contain VirusSimulate virus containment by repeatedly quarantining the most dangerous infected region and spreading the remaining regions.
6 min
LeetCode 750: Number Of Corner RectanglesCount axis-aligned rectangles whose four corners are 1 using column-pair frequency counting.
5 min
LeetCode 751: IP to CIDRA clear explanation of converting a range of IPv4 addresses into the shortest list of CIDR blocks using greedy bit manipulation.
7 min
LeetCode 752: Open the LockA clear explanation of solving Open the Lock using breadth-first search over lock states.
6 min
LeetCode 753: Cracking the SafeA clear explanation of Cracking the Safe using a de Bruijn sequence and depth-first search over password states.
6 min
LeetCode 754: Reach a NumberA clear explanation of reaching a target on a number line using cumulative sums and parity.
6 min
LeetCode 755: Pour WaterA clear explanation of simulating water droplets over an elevation map by checking left first, then right.
6 min
LeetCode 756: Pyramid Transition MatrixA clear explanation of solving Pyramid Transition Matrix using backtracking and memoization over pyramid rows.
6 min
LeetCode 757: Set Intersection Size At Least TwoA clear explanation of solving interval intersection constraints using greedy sorting and minimal point selection.
6 min
LeetCode 758: Bold Words in StringA clear explanation of marking matching substrings and merging overlapping bold ranges.
5 min
LeetCode 759: Employee Free TimeA clear explanation of finding common free time by merging all employee busy intervals and returning the gaps.
6 min
LeetCode 760: Find Anagram MappingsA clear explanation of mapping each element in one array to a matching index in its anagram using a hash map.
4 min
LeetCode 761: Special Binary StringA clear explanation of making a special binary string lexicographically largest using recursive decomposition and sorting.
5 min
LeetCode 762: Prime Number of Set Bits in Binary RepresentationA clear explanation of counting numbers whose binary representation has a prime number of set bits.
5 min
LeetCode 763: Partition LabelsA clear explanation of partitioning a string into the maximum number of parts so each character appears in at most one part.
5 min
LeetCode 764: Largest Plus SignA clear explanation of finding the largest plus sign in a mined grid using four directional dynamic programming scans.
6 min
LeetCode 765: Couples Holding HandsA clear explanation of minimizing swaps so every couple sits together using greedy position tracking.
6 min
LeetCode 766: Toeplitz MatrixA clear explanation of checking whether every top-left to bottom-right diagonal in a matrix has the same value.
4 min
LeetCode 767: Reorganize StringA clear explanation of rearranging characters so no two adjacent characters are equal using a greedy max heap.
6 min
LeetCode 768: Max Chunks To Make Sorted IIA clear explanation of splitting an array into the maximum number of chunks so sorting each chunk gives the fully sorted array.
6 min
LeetCode 769: Max Chunks To Make SortedA clear explanation of splitting a permutation into the maximum number of chunks using prefix maximums.
5 min
LeetCode 770: Basic Calculator IVA clear explanation of simplifying algebraic expressions by parsing, substituting variables, and combining polynomial terms.
7 min
LeetCode 771: Jewels and StonesA clear explanation of counting how many stones are jewels using a hash set for fast membership checks.
3 min
LeetCode 772: Basic Calculator IIIA clear explanation of evaluating arithmetic expressions with parentheses, precedence, and integer division.
6 min
LeetCode 773: Sliding PuzzleA clear explanation of solving the 2 x 3 sliding puzzle using breadth-first search over board states.
5 min
LeetCode 774: Minimize Max Distance to Gas StationA clear explanation of minimizing the largest adjacent gas-station distance using binary search on the answer.
6 min
LeetCode 775: Global and Local InversionsA clear explanation of checking whether every global inversion is also a local inversion using distance constraints.
5 min
LeetCode 776: Split BSTA clear explanation of splitting a binary search tree into two BSTs using recursion and pointer rewiring.
7 min
LeetCode 777: Swap Adjacent in LR StringA clear explanation of validating string transformation using two pointers and movement constraints.
6 min
LeetCode 778: Swim in Rising WaterA clear explanation of finding the minimum time to reach the bottom-right cell using a priority queue and minimax path reasoning.
6 min
LeetCode 779: K-th Symbol in GrammarA clear explanation of finding the kth symbol in the grammar sequence using recursion and the parent-child relationship.
5 min
LeetCode 780: Reaching PointsA clear explanation of checking whether one point can reach another by working backward with modulo.
6 min
LeetCode 781: Rabbits in ForestA clear explanation of finding the minimum possible number of rabbits using counting and greedy grouping.
5 min
LeetCode 782: Transform to ChessboardA clear explanation of transforming a binary board into a chessboard using feasibility checks and minimum row and column swaps.
7 min
LeetCode 783: Minimum Distance Between BST NodesA clear explanation of finding the minimum difference between any two nodes in a BST using inorder traversal.
5 min
LeetCode 784: Letter Case PermutationA clear explanation of generating all strings formed by independently changing each letter to lowercase or uppercase.
4 min
LeetCode 785: Is Graph Bipartite?A clear explanation of checking whether an undirected graph can be split into two independent sets using graph coloring.
5 min
LeetCode 786: K-th Smallest Prime FractionA clear explanation of finding the kth smallest fraction from a sorted array using a min-heap.
5 min
LeetCode 787: Cheapest Flights Within K StopsA clear explanation of finding the cheapest flight route with at most k stops using bounded Bellman-Ford relaxation.
6 min
LeetCode 788: Rotated DigitsA clear explanation of counting good numbers after rotating every digit by 180 degrees.
5 min
LeetCode 789: Escape The GhostsA clear explanation of deciding whether escape is possible by comparing Manhattan distances to the target.
5 min
LeetCode 790: Domino and Tromino TilingA clear explanation of counting tilings of a 2 x n board using dominoes and L-shaped trominoes with dynamic programming.
6 min
LeetCode 791: Custom Sort StringA clear explanation of rearranging a string so that selected characters follow a custom order.
5 min
LeetCode 792: Number of Matching SubsequencesA clear explanation of counting how many words are subsequences of a string using waiting queues.
6 min
LeetCode 793: Preimage Size of Factorial Zeroes FunctionA clear explanation of finding how many integers have exactly k trailing zeroes in their factorial.
5 min
LeetCode 794: Valid Tic-Tac-Toe StateA clear explanation of validating whether a Tic-Tac-Toe board can occur in a legal game.
6 min
LeetCode 795: Number of Subarrays with Bounded MaximumA clear explanation of counting contiguous subarrays whose maximum value lies inside a given inclusive range.
5 min
LeetCode 796: Rotate StringA clear explanation of checking whether one string can become another by repeated left rotations.
4 min
LeetCode 797: All Paths From Source to TargetA clear explanation of finding every path from node 0 to node n - 1 in a directed acyclic graph using DFS and backtracking.
5 min
LeetCode 798: Smallest Rotation with Highest ScoreA clear explanation of finding the smallest rotation with maximum score using a difference array.
6 min
LeetCode 799: Champagne TowerA clear explanation of simulating overflow in a champagne glass pyramid using dynamic programming.
5 min