LeetCode 09xx

LeetCode problems 900–999

100 items

LeetCode 09xx

# Problem Difficulty Time Notes
900 RLE Iterator 🟡 Medium 1m 12s This problem asks us to design an iterator over a run-length encode…
901 Online Stock Span 🟡 Medium 1m The problem asks us to design a class that processes stock prices o…
902 Numbers At Most N Given Digit Set 🔴 Hard 1m 17s The problem gives us a set of allowed digits, stored as strings, an…
903 Valid Permutations for DI Sequence 🔴 Hard 1m 15s The problem gives us a string s of length n, where each character d…
904 Fruit Into Baskets 🟡 Medium 1m 6s This problem asks us to find the length of the longest contiguous s…
905 Sort Array By Parity 🟢 Easy 1m The problem asks us to rearrange an array so that all even numbers …
906 Super Palindromes 🔴 Hard 1m 34s This problem asks us to count how many numbers within a given inclu…
907 Sum of Subarray Minimums 🟡 Medium 1m 21s The problem asks us to compute the sum of the minimum value of ever…
908 Smallest Range I 🟢 Easy 1m 3s The problem gives us an integer array nums and an integer k. For ev…
909 Snakes and Ladders 🟡 Medium 41s The problem is asking us to simulate a modified game of Snakes and …
910 Smallest Range II 🟡 Medium 1m 12s The problem gives us an integer array nums and an integer k. For ev…
911 Online Election 🟡 Medium 48s The problem is asking us to design a data structure that can effici…
912 Sort an Array 🟡 Medium 1m 6s The problem asks us to sort an integer array in ascending order wit…
913 Cat and Mouse 🔴 Hard 1m 30s In this problem, we are given an undirected graph where two players…
914 X of a Kind in a Deck of Cards 🟢 Easy 38s The problem asks whether it is possible to partition a deck of card…
915 Partition Array into Disjoint Intervals 🟡 Medium 57s The problem asks us to split an array into two contiguous parts, le…
916 Word Subsets 🟡 Medium 1m 15s The problem asks us to determine which strings in words1 satisfy al…
917 Reverse Only Letters 🟢 Easy 1m 9s The problem asks us to reverse only the English letters in a string…
918 Maximum Sum Circular Subarray 🟡 Medium 35s The problem asks for the maximum sum of a subarray in a circular ar…
919 Complete Binary Tree Inserter 🟡 Medium 41s This problem asks us to design a data structure that allows inserti…
920 Number of Music Playlists 🔴 Hard 1m 24s The problem gives us n unique songs and asks us to build playlists …
921 Minimum Add to Make Parentheses Valid 🟡 Medium 29s The problem asks us to determine the minimum number of parentheses …
922 Sort Array By Parity II 🟢 Easy 1m 9s The problem gives an integer array nums where exactly half of the e…
923 3Sum With Multiplicity 🟡 Medium 1m 28s The problem asks us to count how many index triplets (i, j, k) sati…
924 Minimize Malware Spread 🔴 Hard 1m 24s In this problem, we are given an undirected graph represented as an…
925 Long Pressed Name 🟢 Easy 1m 10s In this problem, we are given two strings, name and typed. The stri…
926 Flip String to Monotone Increasing 🟡 Medium 1m 8s The problem asks us to transform a binary string into a monotone in…
927 Three Equal Parts 🔴 Hard 44s The problem asks us to partition a binary array arr into three non-…
928 Minimize Malware Spread II 🔴 Hard 41s The problem is about a network of computers represented as an undir…
929 Unique Email Addresses 🟢 Easy 2m 19s The problem gives us a list of email addresses and asks how many un…
930 Binary Subarrays With Sum 🟡 Medium 59s The problem asks us to count the number of contiguous subarrays in …
931 Minimum Falling Path Sum 🟡 Medium 1m 3s The problem asks for the minimum sum of any falling path through an…
932 Beautiful Array 🟡 Medium 1m 2s The problem asks us to construct a permutation of the integers from…
933 Number of Recent Calls 🟢 Easy 36s The problem asks us to implement a class RecentCounter that tracks …
934 Shortest Bridge 🟡 Medium 1m 14s The problem gives us an n x n binary matrix called grid. Each cell …
935 Knight Dialer 🟡 Medium 1m 13s The problem asks us to count how many distinct phone numbers of len…
936 Stamping The Sequence 🔴 Hard 1m 17s This problem asks us to reconstruct a target string by repeatedly a…
937 Reorder Data in Log Files 🟡 Medium 1m 4s In this problem, we are given a list of log strings. Each log conta…
938 Range Sum of BST 🟢 Easy 1m This problem gives us the root of a Binary Search Tree, abbreviated…
939 Minimum Area Rectangle 🟡 Medium 1m 18s The problem gives us a collection of distinct points on a 2D plane.…
940 Distinct Subsequences II 🔴 Hard 1m 8s The problem asks us to count how many distinct non-empty subsequenc…
941 Valid Mountain Array 🟢 Easy 1m 13s The problem asks us to determine whether a given integer array form…
942 DI String Match 🟢 Easy 1m 15s In this problem, we are given a string s consisting only of the cha…
943 Find the Shortest Superstring 🔴 Hard 39s The problem asks us to find the shortest superstring that contains …
944 Delete Columns to Make Sorted 🟢 Easy 1m 6s The problem gives us an array of strings where every string has exa…
945 Minimum Increment to Make Array Unique 🟡 Medium 41s This problem asks us to take an integer array nums and perform a se…
946 Validate Stack Sequences 🟡 Medium 35s This problem asks whether two sequences of integers, pushed and pop…
947 Most Stones Removed with Same Row or Column 🟡 Medium 1m 17s The problem gives us a collection of stones placed on a 2D grid. Ea…
948 Bag of Tokens 🟡 Medium 1m 15s The problem gives us a collection of tokens, where each token has a…
949 Largest Time for Given Digits 🟡 Medium 1m 6s The problem provides an array of exactly four digits. Using each di…
950 Reveal Cards In Increasing Order 🟡 Medium 1m 11s The problem gives us a deck of unique integer cards and asks us to …
951 Flip Equivalent Binary Trees 🟡 Medium 1m 7s This problem asks us to determine whether two binary trees can be m…
952 Largest Component Size by Common Factor 🔴 Hard 38s The problem asks us to find the largest connected component in a gr…
953 Verifying an Alien Dictionary 🟢 Easy 1m 4s This problem asks us to verify whether a list of words is sorted ac…
954 Array of Doubled Pairs 🟡 Medium 29s The problem asks whether it is possible to reorder an even-length a…
955 Delete Columns to Make Sorted II 🟡 Medium 1m 20s This problem asks us to remove the minimum number of columns from a…
956 Tallest Billboard 🔴 Hard 1m 11s This problem asks us to split a collection of steel rods into two g…
957 Prison Cells After N Days 🟡 Medium 39s The problem presents a simulation scenario with a row of exactly 8 …
958 Check Completeness of a Binary Tree 🟡 Medium 36s The problem asks us to determine whether a given binary tree is a c…
959 Regions Cut By Slashes 🟡 Medium 40s Let's dive into a full, detailed technical solution guide for LeetC…
960 Delete Columns to Make Sorted III 🔴 Hard 33s This problem asks us to find the minimum number of columns to delet…
961 N-Repeated Element in Size 2N Array 🟢 Easy 2m 48s The problem gives us an integer array nums whose length is exactly …
962 Maximum Width Ramp 🟡 Medium 28s The problem asks us to find the maximum width ramp in an array of i…
963 Minimum Area Rectangle II 🟡 Medium 1m 28s The problem gives us a collection of unique points on a 2D plane. O…
964 Least Operators to Express Number 🔴 Hard 1m 23s This problem asks us to construct a mathematical expression using o…
965 Univalued Binary Tree 🟢 Easy 1m 3s The problem gives us the root node of a binary tree and asks whethe…
966 Vowel Spellchecker 🟡 Medium 1m 35s The problem asks us to build a spellchecker with three levels of ma…
967 Numbers With Same Consecutive Differences 🟡 Medium 46s The problem asks us to generate all integers of length n such that …
968 Binary Tree Cameras 🔴 Hard 36s This problem asks us to determine the minimum number of cameras req…
969 Pancake Sorting 🟡 Medium 42s The problem is asking us to sort an array of unique integers using …
970 Powerful Integers 🟡 Medium 1m 8s This problem asks us to generate all integers that can be written i…
971 Flip Binary Tree To Match Preorder Traversal 🟡 Medium 36s This problem asks us to manipulate a binary tree so that its pre-or…
972 Equal Rational Numbers 🔴 Hard 45s The problem asks us to determine whether two strings s and t, each …
973 K Closest Points to Origin 🟡 Medium 41s This problem asks us to find the k points that are closest to the o…
974 Subarray Sums Divisible by K 🟡 Medium 1m 9s The problem asks us to count how many non-empty contiguous subarray…
975 Odd Even Jump 🔴 Hard 38s The problem asks us to determine how many starting indices in an ar…
976 Largest Perimeter Triangle 🟢 Easy 1m 7s The problem gives us an array of integers called nums, where each i…
977 Squares of a Sorted Array 🟢 Easy 46s The problem asks us to take an array of integers nums that is alrea…
978 Longest Turbulent Subarray 🟡 Medium 1m 16s The problem asks us to find the length of the longest turbulent sub…
979 Distribute Coins in Binary Tree 🟡 Medium 1m 5s In this problem, we are given a binary tree where every node contai…
980 Unique Paths III 🔴 Hard 1m 18s This problem asks us to count the number of valid paths in a grid u…
981 Time Based Key-Value Store 🟡 Medium 1m 15s The problem asks us to design a data structure that behaves like a …
982 Triples with Bitwise AND Equal To Zero 🔴 Hard 44s This problem asks us to count the number of triples (i, j, k) from …
983 Minimum Cost For Tickets 🟡 Medium 1m 7s In this problem, we are given a list of travel days during a single…
984 String Without AAA or BBB 🟡 Medium 58s The problem gives us two integers, a and b, representing how many '…
985 Sum of Even Numbers After Queries 🟡 Medium 1m The problem gives us an integer array nums and a list of update ope…
986 Interval List Intersections 🟡 Medium 1m 8s The problem gives us two lists of closed intervals. Each interval i…
987 Vertical Order Traversal of a Binary Tree 🔴 Hard 41s The problem asks us to compute the vertical order traversal of a bi…
988 Smallest String Starting From Leaf 🟡 Medium 1m 8s The problem gives us the root of a binary tree where every node sto…
989 Add to Array-Form of Integer 🟢 Easy 40s The problem is asking us to perform addition between a number repre…
990 Satisfiability of Equality Equations 🟡 Medium 46s The problem is asking us to determine if a set of equations between…
991 Broken Calculator 🟡 Medium 54s This problem gives us a calculator that starts with an integer star…
992 Subarrays with K Different Integers 🔴 Hard 1m 19s The problem asks us to count how many contiguous subarrays contain …
993 Cousins in Binary Tree 🟢 Easy 1m 22s The problem asks us to determine whether two nodes in a binary tree…
994 Rotting Oranges 🟡 Medium 1m 30s You are given a 2D grid where each cell represents one of three pos…
995 Minimum Number of K Consecutive Bit Flips 🔴 Hard 39s The problem gives us a binary array nums consisting of 0s and 1s an…
996 Number of Squareful Arrays 🔴 Hard 36s The problem asks us to count all permutations of a given integer ar…
997 Find the Town Judge 🟢 Easy 1m 5s The problem describes a town containing n people labeled from 1 to …
998 Maximum Binary Tree II 🟡 Medium 1m 8s A maximum tree is a special binary tree where every node contains a…
999 Available Captures for Rook 🟢 Easy 1m 32s The problem gives us an 8 x 8 chessboard represented as a matrix of…