LeetCode 11xx

LeetCode problems 1100–1199

100 items

LeetCode 11xx

# Problem Difficulty Time Notes
1100 Find K-Length Substrings With No Repeated Characters 🟡 Medium 57s The problem asks us to count how many substrings of length k contai…
1101 The Earliest Moment When Everyone Become Friends 🟡 Medium 5m 31s The problem is asking us to determine the earliest time at which a …
1102 Path With Maximum Minimum Value 🟡 Medium 1m 55s The problem asks us to find the maximum possible score of a path fr…
1103 Distribute Candies to People 🟢 Easy 6m 19s The problem describes a sequential candy distribution process acros…
1104 Path In Zigzag Labelled Binary Tree 🟡 Medium 1m 9s This problem describes an infinite binary tree where nodes are norm…
1105 Filling Bookcase Shelves 🟡 Medium 57s The problem asks us to arrange a sequence of books on a bookshelf w…
1106 Parsing A Boolean Expression 🔴 Hard 48s The problem asks us to evaluate a boolean expression represented as…
1107 New Users Daily Count 🟡 Medium 1m 18s We are given a database table called Traffic that records different…
1108 Defanging an IP Address 🟢 Easy 51s The problem asks us to transform a valid IPv4 address into its "def…
1109 Corporate Flight Bookings 🟡 Medium 52s The problem is asking us to compute the total number of seats reser…
1110 Delete Nodes And Return Forest 🟡 Medium 1m 23s This problem gives us the root of a binary tree and a list of node …
1111 Maximum Nesting Depth of Two Valid Parentheses Strings 🟡 Medium 47s The problem asks us to take a valid parentheses string seq and spli…
1112 Highest Grade For Each Student 🟡 Medium 1m 8s The problem gives us a database table named Enrollments. Each row r…
1113 Reported Posts 🟢 Easy 51s The problem is asking us to determine the number of posts that were…
1114 Print in Order 🟢 Easy 1m 20s This problem asks us to coordinate three independent threads so tha…
1115 Print FooBar Alternately 🟡 Medium 1m 6s This problem is a classic concurrency synchronization task. We are …
1116 Print Zero Even Odd 🟡 Medium 46s The problem requires us to implement a multithreaded class ZeroEven…
1117 Building H2O 🟡 Medium 1m 7s This problem asks us to coordinate multiple concurrent threads so t…
1118 Number of Days in a Month 🟢 Easy 40s The problem asks us to determine the number of days in a specific m…
1119 Remove Vowels from a String 🟢 Easy 45s The problem asks us to remove vowels from a given string s. Specifi…
1120 Maximum Average Subtree 🟡 Medium 1m 5s This problem asks us to find the maximum average value among all su…
1121 Divide Array Into Increasing Sequences 🔴 Hard 39s The problem asks us to determine if a sorted integer array nums can…
1122 Relative Sort Array 🟢 Easy 1m 2s This problem asks us to sort arr1, but not in ordinary ascending or…
1123 Lowest Common Ancestor of Deepest Leaves 🟡 Medium 1m 13s This problem asks us to find the lowest common ancestor, abbreviate…
1124 Longest Well-Performing Interval 🟡 Medium 1m 22s Edit The problem gives us an array hours, where each element repres…
1125 Smallest Sufficient Team 🔴 Hard 1m 12s This problem asks us to build the smallest possible team that colle…
1126 Active Businesses 🟡 Medium 1m 15s The problem gives us a database table named Events. Each row repres…
1127 User Purchase Platform 🔴 Hard 3m 27s The Spending table records purchases made by users on an e-commerce…
1128 Number of Equivalent Domino Pairs 🟢 Easy 46s The problem is asking us to count all pairs of dominoes in a list t…
1129 Shortest Path with Alternating Colors 🟡 Medium 2m 3s The problem gives us a directed graph with n nodes labeled from 0 t…
1130 Minimum Cost Tree From Leaf Values 🟡 Medium 45s The problem asks us to construct a binary tree from an input array …
1131 Maximum of Absolute Value Expression 🟡 Medium 1m 10s The problem gives us two integer arrays, arr1 and arr2, both having…
1132 Reported Posts II 🟡 Medium 48s The problem asks us to calculate the average daily percentage of po…
1133 Largest Unique Number 🟢 Easy 46s The problem is asking us to identify the largest integer in an arra…
1134 Armstrong Number 🟢 Easy 52s In this problem, we are given an integer n, and we must determine w…
1135 Connecting Cities With Minimum Cost 🟡 Medium 1m 23s This problem asks us to connect n cities together using a set of po…
1136 Parallel Courses 🟡 Medium 45s The problem is asking us to determine the minimum number of semeste…
1137 N-th Tribonacci Number 🟢 Easy 1m 28s The problem asks us to compute the n-th number in the Tribonacci se…
1138 Alphabet Board Path 🟡 Medium 1m 8s The problem gives us a special alphabet board and asks us to genera…
1139 Largest 1-Bordered Square 🟡 Medium 38s That is a long, detailed reference document with multiple required …
1140 Stone Game II 🟡 Medium 47s The problem is a two-player turn-based game played on a row of ston…
1141 User Activity for the Past 30 Days I 🟢 Easy 1m 16s This problem asks us to compute the number of distinct active users…
1142 User Activity for the Past 30 Days II 🟢 Easy 53s This problem asks us to compute the average number of sessions per …
1143 Longest Common Subsequence 🟡 Medium 1m 13s The problem asks us to find the length of the longest subsequence t…
1144 Decrease Elements To Make Array Zigzag 🟡 Medium 1m 18s The problem gives an integer array nums and allows only one type of…
1145 Binary Tree Coloring Game 🟡 Medium 2m 37s The problem is a two-player game played on a binary tree, where eac…
1146 Snapshot Array 🟡 Medium 6m 58s The problem asks us to implement a SnapshotArray, a data structure …
1147 Longest Chunked Palindrome Decomposition 🔴 Hard 44s The problem asks us to decompose a given string text into the large…
1148 Article Views I 🟢 Easy 40s The problem is asking us to identify all authors who have viewed at…
1149 Article Views II 🟡 Medium 1m 15s The problem gives us a database table named Views. Each row represe…
1150 Check If a Number Is Majority Element in a Sorted Array 🟢 Easy 44s This problem asks us to determine if a given target integer is a ma…
1151 Minimum Swaps to Group All 1's Together 🟡 Medium 1m 13s This problem asks us to determine the minimum number of swaps neede…
1152 Analyze User Website Visit Pattern 🟡 Medium 1m 1s Here is a comprehensive, detailed technical solution guide for Leet…
1153 String Transforms Into Another String 🔴 Hard 1m 17s The problem gives us two strings, str1 and str2, which are guarante…
1154 Day of the Year 🟢 Easy 43s The problem asks us to compute the ordinal day number of a year giv…
1155 Number of Dice Rolls With Target Sum 🟡 Medium 1m 41s The problem gives us n identical dice, where each die has faces num…
1156 Swap For Longest Repeated Character Substring 🟡 Medium 48s The problem asks us to determine the length of the longest substrin…
1157 Online Majority Element In Subarray 🔴 Hard 41s The problem asks us to design a data structure that can efficiently…
1158 Market Analysis I 🟡 Medium 1m 25s This problem asks us to analyze purchasing activity on an online sh…
1159 Market Analysis II 🔴 Hard 1m 5s This problem asks us to determine, for every user in the marketplac…
1160 Find Words That Can Be Formed by Characters 🟢 Easy 1m 7s This problem asks us to determine which words from a given list can…
1161 Maximum Level Sum of a Binary Tree 🟡 Medium 1m 24s In this problem, we are given the root node of a binary tree. Every…
1162 As Far from Land as Possible 🟡 Medium 1m 15s The problem requires finding the water cell in a given n x n grid t…
1163 Last Substring in Lexicographical Order 🔴 Hard 1m 11s The problem asks us to find the substring of a given string s that …
1164 Product Price at a Given Date 🟡 Medium 1m 19s The problem provides a database table named Products, where each ro…
1165 Single-Row Keyboard 🟢 Easy 52s The problem describes a single-row keyboard where each key is posit…
1166 Design File System 🟡 Medium 1m 14s This problem asks us to design a simplified file system that suppor…
1167 Minimum Cost to Connect Sticks 🟡 Medium 1m 16s The problem gives us an array of positive integers called sticks, w…
1168 Optimize Water Distribution in a Village 🔴 Hard 45s The problem asks us to supply water to all houses in a village in t…
1169 Invalid Transactions 🟡 Medium 1m 14s The problem asks us to identify transactions that are potentially i…
1170 Compare Strings by Frequency of the Smallest Character 🟡 Medium 1m 32s The problem defines a function f(s) for a non-empty string s. This …
1171 Remove Zero Sum Consecutive Nodes from Linked List 🟡 Medium 47s The problem requires us to repeatedly remove consecutive nodes in a…
1172 Dinner Plate Stacks 🔴 Hard 1m 44s The problem asks us to design a data structure that behaves like an…
1173 Immediate Food Delivery I 🟢 Easy 41s The problem is asking to calculate the percentage of immediate food…
1174 Immediate Food Delivery II 🟡 Medium 1m 21s The problem provides a Delivery table that records food delivery or…
1175 Prime Arrangements 🟢 Easy 48s The problem asks us to count how many permutations of numbers from …
1176 Diet Plan Performance 🟢 Easy 40s The problem is asking us to simulate a dieter’s performance over a …
1177 Can Make Palindrome from Substring 🟡 Medium 44s The problem asks us to determine whether certain substrings of a gi…
1178 Number of Valid Words for Each Puzzle 🔴 Hard 1m 27s The problem asks us to determine, for each given puzzle string, how…
1179 Reformat Department Table 🟢 Easy 43s The problem is asking us to take a table Department that records re…
1180 Count Substrings with Only One Distinct Letter 🟢 Easy 1m 17s The problem asks us to count how many substrings of a given string …
1181 Before and After Puzzle 🟡 Medium 1m 20s The problem gives us an array of phrases, where each phrase is a st…
1182 Shortest Distance to Target Color 🟡 Medium 1m 11s The problem gives us an array called colors, where each position co…
1183 Maximum Number of Ones 🔴 Hard 1m 23s The problem gives us a binary matrix M with dimensions height x wid…
1184 Distance Between Bus Stops 🟢 Easy 1m 8s In this problem, we are given a circular bus route with n stops num…
1185 Day of the Week 🟢 Easy 1m 11s This problem asks us to determine which day of the week corresponds…
1186 Maximum Subarray Sum with One Deletion 🟡 Medium 51s The problem is asking us to find the maximum sum of a contiguous su…
1187 Make Array Strictly Increasing 🔴 Hard 40s The problem is asking us to transform the array arr1 into a strictl…
1188 Design Bounded Blocking Queue 🟡 Medium 1m 8s This problem asks us to implement a thread-safe bounded blocking qu…
1189 Maximum Number of Balloons 🟢 Easy 46s The problem asks us to determine the maximum number of times the wo…
1190 Reverse Substrings Between Each Pair of Parentheses 🟡 Medium 1m 15s The problem gives us a string s containing lowercase English letter…
1191 K-Concatenation Maximum Sum 🟡 Medium 1m 41s This problem asks us to find the maximum possible sum of a contiguo…
1192 Critical Connections in a Network 🔴 Hard 1m 31s This problem gives us an undirected graph representing a network of…
1193 Monthly Transactions I 🟡 Medium 47s The problem is asking us to produce aggregated statistics on transa…
1194 Tournament Winners 🔴 Hard 44s The problem asks us to determine the winner in each group of player…
1195 Fizz Buzz Multithreaded 🟡 Medium 1m 24s The problem asks us to coordinate four separate threads so they col…
1196 How Many Apples Can You Put into the Basket 🟢 Easy 36s This problem is asking us to determine how many apples we can fit i…
1197 Minimum Knight Moves 🟡 Medium 49s This problem asks us to compute the minimum number of moves a knigh…
1198 Find Smallest Common Element in All Rows 🟡 Medium 1m 4s The problem asks us to find the smallest element that appears in ev…
1199 Minimum Time to Build Blocks 🔴 Hard 1m 43s The problem requires determining the minimum amount of time to buil…