LeetCode 08xx

LeetCode problems 800–899

100 items

LeetCode 08xx

# Problem Difficulty Time Notes
800 Similar RGB Color 🟢 Easy 39s The problem is asking us to find the shorthand RGB color that is mo…
801 Minimum Swaps To Make Sequences Increasing 🔴 Hard 47s The problem gives us two arrays, nums1 and nums2, both of the same …
802 Find Eventual Safe States 🟡 Medium 1m 10s This problem gives us a directed graph represented as an adjacency …
803 Bricks Falling When Hit 🔴 Hard 1m 24s This problem asks us to simulate a sequence of brick removals in a …
804 Unique Morse Code Words 🟢 Easy 58s The problem asks us to determine how many unique Morse code transfo…
805 Split Array With Same Average 🔴 Hard 2m 8s The problem asks whether we can divide the given array nums into tw…
806 Number of Lines To Write String 🟢 Easy 43s This problem is asking us to determine how to write a string s on m…
807 Max Increase to Keep City Skyline 🟡 Medium 1m 16s This problem gives us an n x n grid where each cell represents the …
808 Soup Servings 🟡 Medium 1m 16s The problem gives us two soups, A and B, each starting with exactly…
809 Expressive Words 🟡 Medium 1m 27s The problem asks us to determine how many words in the words array …
810 Chalkboard XOR Game 🔴 Hard 53s This problem describes a two player game played on an array of inte…
811 Subdomain Visit Count 🟡 Medium 1m 5s In this problem, we are given a list of strings where each string r…
812 Largest Triangle Area 🟢 Easy 51s The problem gives us a list of unique points on a 2D X-Y plane. Eac…
813 Largest Sum of Averages 🟡 Medium 1m 21s The problem gives us an integer array nums and an integer k. We are…
814 Binary Tree Pruning 🟡 Medium 1m 29s This problem asks us to modify a binary tree by removing every subt…
815 Bus Routes 🔴 Hard 29s This problem asks us to determine the minimum number of buses requi…
816 Ambiguous Coordinates 🟡 Medium 1m 10s The problem gives us a compressed string representation of a 2D coo…
817 Linked List Components 🟡 Medium 52s The problem gives us a singly linked list where every node contains…
818 Race Car 🔴 Hard 1m 9s This problem asks us to control a car moving on an infinite one dim…
819 Most Common Word 🟢 Easy 1m 20s The problem asks us to process a paragraph of text and determine wh…
820 Short Encoding of Words 🟡 Medium 52s The problem asks us to find the length of the shortest reference st…
821 Shortest Distance to a Character 🟢 Easy 1m 20s The problem gives us a string s and a target character c. For every…
822 Card Flipping Game 🟡 Medium 1m 1s In this problem, we are given a collection of cards where each card…
823 Binary Trees With Factors 🟡 Medium 42s The problem asks us to determine the number of distinct binary tree…
824 Goat Latin 🟢 Easy 1m 4s This problem asks us to transform a given sentence into a fictional…
825 Friends Of Appropriate Ages 🟡 Medium 1m 10s The problem gives us an array ages, where each value represents the…
826 Most Profit Assigning Work 🟡 Medium 55s This problem asks us to maximize the total profit earned by assigni…
827 Making A Large Island 🔴 Hard 1m 29s This problem asks us to find the largest possible island size in a …
828 Count Unique Characters of All Substrings of a Given String 🔴 Hard 1m 10s The problem asks us to compute the total number of unique character…
829 Consecutive Numbers Sum 🔴 Hard 42s The problem asks us to determine in how many distinct ways an integ…
830 Positions of Large Groups 🟢 Easy 56s The problem asks us to identify all large groups in a given string …
831 Masking Personal Information 🟡 Medium 38s The problem requires creating a masked version of a personal inform…
832 Flipping an Image 🟢 Easy 43s The problem requires transforming an n x n binary matrix in two ste…
833 Find And Replace in String 🟡 Medium 1m 5s The problem gives us a string s and three parallel arrays: - indice…
834 Sum of Distances in Tree 🔴 Hard 1m 18s The problem gives us an undirected tree with n nodes labeled from 0…
835 Image Overlap 🟡 Medium 37s This problem asks us to determine the maximum overlap between two b…
836 Rectangle Overlap 🟢 Easy 53s The problem gives us two axis-aligned rectangles, meaning their sid…
837 New 21 Game 🟡 Medium 1m 15s In this problem, Alice repeatedly draws random numbers until her sc…
838 Push Dominoes 🟡 Medium 1m This problem models a chain reaction of falling dominoes. We are gi…
839 Similar String Groups 🔴 Hard 41s The problem asks us to determine the number of similarity groups wi…
840 Magic Squares In Grid 🟡 Medium 42s The problem asks us to count the number of 3 x 3 magic squares insi…
841 Keys and Rooms 🟡 Medium 50s This problem can be interpreted as a graph traversal challenge. Eac…
842 Split Array into Fibonacci Sequence 🟡 Medium 1m 41s The problem gives us a string consisting only of digits, and asks u…
843 Guess the Word 🔴 Hard 1m 16s This is an interactive problem where we must identify a hidden six-…
844 Backspace String Compare 🟢 Easy 1m 12s This problem asks us to determine whether two strings become identi…
845 Longest Mountain in Array 🟡 Medium 58s The problem asks us to find the length of the longest contiguous su…
846 Hand of Straights 🟡 Medium 40s The problem asks us to determine whether a given collection of card…
847 Shortest Path Visiting All Nodes 🔴 Hard 1m 25s The problem gives us an undirected and connected graph with n nodes…
848 Shifting Letters 🟡 Medium 59s This problem asks us to repeatedly apply character shifts to a stri…
849 Maximize Distance to Closest Person 🟡 Medium 1m 18s In this problem, we are given a binary array called seats. Each pos…
850 Rectangle Area II 🔴 Hard 39s This problem asks us to compute the total area covered by a set of …
851 Loud and Rich 🟡 Medium 1m 15s This problem describes a group of people where some people are know…
852 Peak Index in a Mountain Array 🟡 Medium 1m 9s This problem gives us a special type of array called a mountain arr…
853 Car Fleet 🟡 Medium 1m 16s The problem describes a set of cars driving toward the same destina…
854 K-Similar Strings 🔴 Hard 1m 18s The problem asks us to determine the minimum number of swaps needed…
855 Exam Room 🟡 Medium 50s This problem requires designing a simulation for an exam room seati…
856 Score of Parentheses 🟡 Medium 44s The problem is asking us to compute a score for a string of balance…
857 Minimum Cost to Hire K Workers 🔴 Hard 1m 30s In this problem, we are given two arrays, quality and wage, where e…
858 Mirror Reflection 🟡 Medium 1m 8s This problem describes a square room with perfectly reflective wall…
859 Buddy Strings 🟢 Easy 1m 11s The problem asks whether it is possible to make two strings equal b…
860 Lemonade Change 🟢 Easy 39s This problem simulates a lemonade stand where each lemonade costs 5…
861 Score After Flipping Matrix 🟡 Medium 38s The problem provides an m x n binary matrix, grid, where each eleme…
862 Shortest Subarray with Sum at Least K 🔴 Hard 1m 12s The problem asks us to find the length of the shortest contiguous s…
863 All Nodes Distance K in Binary Tree 🟡 Medium 1m 22s This problem gives us the root of a binary tree, a specific target …
864 Shortest Path to Get All Keys 🔴 Hard 34s This problem asks us to find the shortest path to collect all keys …
865 Smallest Subtree with all the Deepest Nodes 🟡 Medium 1m 15s The problem gives us the root of a binary tree and asks us to find …
866 Prime Palindrome 🟡 Medium 1m 4s This problem asks us to find the smallest number greater than or eq…
867 Transpose Matrix 🟢 Easy 1m 7s This problem asks us to compute the transpose of a given two dimens…
868 Binary Gap 🟢 Easy 58s The problem asks us to examine the binary representation of a posit…
869 Reordered Power of 2 🟡 Medium 1m 11s The problem gives us a positive integer n and asks whether its digi…
870 Advantage Shuffle 🟡 Medium 34s The problem asks us to maximize the advantage of one array over ano…
871 Minimum Number of Refueling Stops 🔴 Hard 1m 7s The problem describes a car traveling from position 0 to a destinat…
872 Leaf-Similar Trees 🟢 Easy 1m 4s This problem asks us to compare two binary trees based only on thei…
873 Length of Longest Fibonacci Subsequence 🟡 Medium 1m 12s The problem asks us to find the length of the longest subsequence i…
874 Walking Robot Simulation 🟡 Medium 1m 18s The problem describes a robot moving on an infinite two dimensional…
875 Koko Eating Bananas 🟡 Medium 41s The problem asks us to determine the minimum eating speed k for Kok…
876 Middle of the Linked List 🟢 Easy 55s The problem gives us the head of a singly linked list and asks us t…
877 Stone Game 🟡 Medium 1m 10s The problem describes a two-player game played on an array of stone…
878 Nth Magical Number 🔴 Hard 1m 13s The problem asks us to find the nth positive integer that is divisi…
879 Profitable Schemes 🔴 Hard 1m 16s This problem asks us to count how many subsets of crimes satisfy tw…
880 Decoded String at Index 🟡 Medium 1m 12s The problem gives us an encoded string s that represents a potentia…
881 Boats to Save People 🟡 Medium 1m 10s This problem asks us to determine the minimum number of boats requi…
882 Reachable Nodes In Subdivided Graph 🔴 Hard 2m 1s The problem gives us an undirected graph with n original nodes. Eac…
883 Projection Area of 3D Shapes 🟢 Easy 1m 14s The problem gives us an n x n matrix called grid. Each cell grid[i]…
884 Uncommon Words from Two Sentences 🟢 Easy 56s This problem asks us to find all words that are considered "uncommo…
885 Spiral Matrix III 🟡 Medium 34s The problem is asking us to generate the coordinates of cells in a …
886 Possible Bipartition 🟡 Medium 1m 18s This problem asks whether it is possible to divide n people into ex…
887 Super Egg Drop 🔴 Hard 1m 9s The problem asks us to determine the minimum number of moves requir…
888 Fair Candy Swap 🟢 Easy 1m 9s The problem gives us two arrays, aliceSizes and bobSizes, represent…
889 Construct Binary Tree from Preorder and Postorder Traversal 🟡 Medium 1m 3s The problem gives us two traversal orders of the same binary tree: …
890 Find and Replace Pattern 🟡 Medium 1m 8s The problem gives us a list of words and a target pattern string. W…
891 Sum of Subsequence Widths 🔴 Hard 41s The problem asks us to calculate the sum of widths for all non-empt…
892 Surface Area of 3D Shapes 🟢 Easy 1m 14s The problem gives us an n x n matrix called grid, where each cell c…
893 Groups of Special-Equivalent Strings 🟡 Medium 1m 21s The problem asks us to group strings based on a special equivalence…
894 All Possible Full Binary Trees 🟡 Medium 1m 11s The problem asks us to generate every possible full binary tree tha…
895 Maximum Frequency Stack 🔴 Hard 42s The problem is asking us to design a custom stack-like data structu…
896 Monotonic Array 🟢 Easy 38s This problem asks us to determine whether a given array of integers…
897 Increasing Order Search Tree 🟢 Easy 1m 1s This problem gives us the root of a Binary Search Tree, abbreviated…
898 Bitwise ORs of Subarrays 🟡 Medium 1m 12s The problem asks us to compute every possible bitwise OR value that…
899 Orderly Queue 🔴 Hard 57s This problem gives us a string s and an integer k. We are allowed t…