LeetCode 33xx
LeetCode problems 3300–3399
LeetCode 33xx
| # | Problem | Difficulty | Time | Notes |
|---|---|---|---|---|
| 3300 | Minimum Element After Replacement With Digit Sum | 🟢 Easy | 1m 6s | The problem asks us to transform an array of integers nums by repla… |
| 3301 | Maximize the Total Height of Unique Towers | 🟡 Medium | 1m 20s | We are given an array maximumHeight where maximumHeight[i] represen… |
| 3302 | Find the Lexicographically Smallest Valid Sequence | 🟡 Medium | 58s | The problem asks us to find a sequence of indices from word1 such t… |
| 3303 | Find the Occurrence of First Almost Equal Substring | 🔴 Hard | 2m 26s | We are given two strings, s and pattern. The task is to find the sm… |
| 3304 | Find the K-th Character in String Game I | 🟢 Easy | 1m 19s | The problem defines an infinite string-building process that starts… |
| 3305 | Count of Substrings Containing Every Vowel and K Consonants I | 🟡 Medium | 1m 6s | The problem asks us to count all substrings of a given string word … |
| 3306 | Count of Substrings Containing Every Vowel and K Consonants II | 🟡 Medium | 1m 36s | The problem asks us to count how many substrings of a given string … |
| 3307 | Find the K-th Character in String Game II | 🔴 Hard | 1m 15s | The problem describes a string manipulation game between Alice and … |
| 3308 | Find Top Performing Driver | 🟡 Medium | 1m 14s | The problem asks us to identify the top-performing driver for each … |
| 3309 | Maximum Possible Number by Binary Concatenation | 🟡 Medium | 1m 4s | The problem is asking for the maximum integer value that can be cre… |
| 3310 | Remove Methods From Project | 🟡 Medium | 9m 11s | Understood. For any TAOCP Volume 1 exercise you provide, I will wri… |
| 3311 | Construct 2D Grid Matching Graph Layout | 🔴 Hard | 1m 55s | The problem gives us an undirected graph with n nodes labeled from … |
| 3312 | Sorted GCD Pair Queries | 🔴 Hard | 40s | === 1996-G1 === Origin: GBR Let triangle have orthocenter , and let… |
| 3313 | Find the Last Marked Nodes in Tree | 🔴 Hard | 1m 33s | We are given an undirected tree with n nodes labeled from 0 to n - … |
| 3314 | Construct the Minimum Bitwise Array I | 🟢 Easy | 52s | The problem asks us to construct an array ans from a given array nu… |
| 3315 | Construct the Minimum Bitwise Array II | 🟡 Medium | 1m 28s | We are given an array nums where every element is a prime number. F… |
| 3316 | Find Maximum Removals From Source String | 🟡 Medium | 1m 30s | We are given three inputs: - source, the original string of length … |
| 3317 | Find the Number of Possible Ways for an Event | 🔴 Hard | 1m 38s | The problem describes an event with n performers and x available st… |
| 3318 | Find X-Sum of All K-Long Subarrays I | 🟢 Easy | 2m | The problem asks us to compute a special value called the x-sum for… |
| 3319 | K-th Largest Perfect Subtree Size in Binary Tree | 🟡 Medium | 1m 36s | We are given the root of a binary tree and an integer k. Our goal i… |
| 3320 | Count The Number of Winning Sequences | 🔴 Hard | 1m 35s | We are given a string s representing Alice’s moves across n rounds … |
| 3321 | Find X-Sum of All K-Long Subarrays II | 🔴 Hard | 1m 14s | The problem asks us to compute a specialized sum, called the x-sum,… |
| 3322 | Premier League Table Ranking III | 🟡 Medium | 1m 4s | The problem requires calculating a Premier League-style ranking for… |
| 3323 | Minimize Connected Groups by Inserting Interval | 🟡 Medium | 51s | The problem asks us to minimize the number of connected groups in a… |
| 3324 | Find the Sequence of Strings Appeared on the Screen | 🟡 Medium | 2m 2s | The problem gives us a target string and a very restricted keyboard… |
| 3325 | Count Substrings With K-Frequency Characters I | 🟡 Medium | 1m 9s | The problem asks us to count all substrings of a given string s suc… |
| 3326 | Minimum Division Operations to Make Array Non Decreasing | 🟡 Medium | 1m 22s | The problem asks us to make a given integer array nums non-decreasi… |
| 3327 | Check if DFS Strings Are Palindromes | 🔴 Hard | 1m 43s | We are given a rooted tree with n nodes. Node 0 is the root, and th… |
| 3328 | Find Cities in Each State II | 🟡 Medium | 1m 36s | The problem gives us a database table named cities, where each row … |
| 3329 | Count Substrings With K-Frequency Characters II | 🔴 Hard | 1m 41s | The problem asks us to count how many substrings of a given string … |
| 3330 | Find the Original Typed String I | 🟢 Easy | 55s | This problem asks us to determine the number of possible original s… |
| 3331 | Find Subtree Sizes After Changes | 🟡 Medium | 1m 44s | We are given a rooted tree with n nodes numbered from 0 to n - 1. T… |
| 3332 | Maximum Points Tourist Can Earn | 🟡 Medium | 52s | The problem asks us to maximize the points a tourist can earn over … |
| 3333 | Find the Original Typed String II | 🔴 Hard | 32s | The problem asks us to determine the number of possible original st… |
| 3334 | Find the Maximum Factor Score of Array | 🟡 Medium | 1m 8s | The problem asks us to compute the maximum factor score of an array… |
| 3335 | Total Characters in String After Transformations I | 🟡 Medium | 1m 7s | The problem gives us a string s and an integer t. We repeatedly app… |
| 3336 | Find the Number of Subsequences With Equal GCD | 🔴 Hard | 1m 6s | The problem asks us to count the number of pairs of non-empty disjo… |
| 3337 | Total Characters in String After Transformations II | 🔴 Hard | 1m 55s | The problem defines a repeated string transformation process over l… |
| 3338 | Second Highest Salary II | 🟡 Medium | 52s | This problem asks us to analyze employee salary data within departm… |
| 3339 | Find the Number of K-Even Arrays | 🟡 Medium | 1m 34s | We are given three integers: - n, the length of the array. - m, the… |
| 3340 | Check Balanced String | 🟢 Easy | 1m 13s | The problem gives us a string num that contains only numeric digits… |
| 3341 | Find Minimum Time to Reach Last Room I | 🟡 Medium | 1m 20s | The problem is asking for the minimum time required to reach the bo… |
| 3342 | Find Minimum Time to Reach Last Room II | 🟡 Medium | 1m 26s | This problem describes a dungeon represented as an n x m grid of ro… |
| 3343 | Count Number of Balanced Permutations | 🔴 Hard | 2m 11s | We are given a string num consisting only of digits. We may rearran… |
| 3344 | Maximum Sized Array | 🟡 Medium | 6m 44s | We are given a non-negative integer s and need to determine the lar… |
| 3345 | Smallest Divisible Digit Product I | 🟢 Easy | 1m 43s | The problem gives us two integers, n and t. We must find the smalle… |
| 3346 | Maximum Frequency of an Element After Performing Operations I | 🟡 Medium | 2m 29s | The problem gives us an integer array nums, along with two integers… |
| 3347 | Maximum Frequency of an Element After Performing Operations II | 🔴 Hard | 1m 58s | The problem gives us an integer array nums, along with two integers… |
| 3348 | Smallest Divisible Digit Product II | 🔴 Hard | 5m 52s | The problem asks us to find the smallest number that satisfies seve… |
| 3349 | Adjacent Increasing Subarrays Detection I | 🟢 Easy | 1m 47s | The problem gives us an integer array nums and an integer k. We nee… |
| 3350 | Adjacent Increasing Subarrays Detection II | 🟡 Medium | 1m 15s | The problem asks us to find the largest possible length k such that… |
| 3351 | Sum of Good Subsequences | 🔴 Hard | 53s | This problem asks us to compute the sum of all good subsequences in… |
| 3352 | Count K-Reducible Numbers Less Than N | 🔴 Hard | 1m 2s | The problem asks us to count the number of positive integers less t… |
| 3353 | Minimum Total Operations | 🟢 Easy | 50s | The problem is asking us to determine the minimum number of operati… |
| 3354 | Make Array Elements Equal to Zero | 🟢 Easy | 1m 30s | The problem gives us an integer array nums, where some elements may… |
| 3355 | Zero Array Transformation I | 🟡 Medium | 54s | The problem asks whether it is possible to transform a given intege… |
| 3356 | Zero Array Transformation II | 🟡 Medium | 1m 1s | The problem asks us to determine the minimum number of sequential q… |
| 3357 | Minimize the Maximum Adjacent Element Difference | 🔴 Hard | 2m 3s | The problem gives us an integer array nums, where some positions co… |
| 3358 | Books with NULL Ratings | 🟢 Easy | 1m 33s | This problem provides a database table named books. Each row in the… |
| 3359 | Find Sorted Submatrices With Maximum Element at Most K | 🔴 Hard | 1m 34s | We are given a matrix grid with m rows and n columns, along with an… |
| 3360 | Stone Removal Game | 🟢 Easy | 1m 6s | In this game, Alice and Bob take turns removing stones from a pile.… |
| 3361 | Shift Distance Between Two Strings | 🟡 Medium | 1m 19s | The problem gives us two strings, s and t, of equal length. We want… |
| 3362 | Zero Array Transformation III | 🟡 Medium | 1m 39s | We are given an integer array nums and a list of interval queries. … |
| 3363 | Find the Maximum Number of Fruits Collected | 🔴 Hard | 45s | This problem asks us to maximize the total number of fruits collect… |
| 3364 | Minimum Positive Sum Subarray | 🟢 Easy | 1m 20s | The problem asks us to find the smallest positive sum among all sub… |
| 3365 | Rearrange K Substrings to Form Target String | 🟡 Medium | 2m 5s | This problem asks whether it is possible to rearrange k contiguous … |
| 3366 | Minimum Array Sum | 🟡 Medium | 1m 30s | We are given an array nums and two different operations that can re… |
| 3367 | Maximize Sum of Weights after Edge Removals | 🔴 Hard | 1m 46s | We are given an undirected weighted tree with n nodes and n - 1 edg… |
| 3368 | First Letter Capitalization | 🔴 Hard | 4m 28s | This problem provides a database table named usercontent with two c… |
| 3369 | Design an Array Statistics Tracker | 🔴 Hard | 1m 47s | The problem asks us to design a data structure that supports a stre… |
| 3370 | Smallest Number With All Set Bits | 🟢 Easy | 1m 1s | The problem asks us to find the smallest integer x such that: 1. x … |
| 3371 | Identify the Largest Outlier in an Array | 🟡 Medium | 1m 23s | The problem gives us an integer array nums containing exactly three… |
| 3372 | Maximize the Number of Target Nodes After Connecting Trees I | 🟡 Medium | 1m 30s | We are given two separate undirected trees. The first tree contains… |
| 3373 | Maximize the Number of Target Nodes After Connecting Trees II | 🔴 Hard | 1m 43s | The problem gives us two separate undirected trees. The first tree … |
| 3374 | First Letter Capitalization II | 🔴 Hard | 1m 18s | This problem asks us to transform text stored in a database table w… |
| 3375 | Minimum Operations to Make Array Values Equal to K | 🟢 Easy | 1m 19s | The problem gives us an integer array nums and a target value k. Ou… |
| 3376 | Minimum Time to Break Locks I | 🟡 Medium | 1m 18s | The problem describes a sequence of locks that must all be broken. … |
| 3377 | Digit Operations to Make Two Integers Equal | 🟡 Medium | 1m 7s | The problem asks us to transform one integer n into another integer… |
| 3378 | Count Connected Components in LCM Graph | 🔴 Hard | 1m 34s | We are given an array nums, where each element represents the value… |
| 3379 | Transformed Array | 🟢 Easy | 40s | The problem asks us to transform a given integer array nums into a … |
| 3380 | Maximum Area Rectangle With Point Constraints I | 🟡 Medium | 1m 35s | The problem gives us a set of unique points on a 2D plane. We need … |
| 3382 | Maximum Area Rectangle With Point Constraints II | 🔴 Hard | 49s | The problem asks us to find the maximum area rectangle that can be … |
| 3383 | Minimum Runes to Add to Cast Spell | 🔴 Hard | 1m 56s | We are given a directed graph with n focus points, numbered from 0 … |
| 3384 | Team Dominance by Pass Success | 🔴 Hard | 1m 45s | This problem asks us to compute a dominance score for each football… |
| 3385 | Minimum Time to Break Locks II | 🔴 Hard | 1m 14s | In this problem, Bob must break a collection of locks, where each l… |
| 3386 | Button with Longest Push Time | 🟢 Easy | 1m 17s | The problem gives us a sequence of keyboard button press events. Ea… |
| 3387 | Maximize Amount After Two Days of Conversions | 🟡 Medium | 1m 27s | This problem models currency conversions as graph traversal across … |
| 3388 | Count Beautiful Splits in an Array | 🟡 Medium | 1m 27s | We are given an integer array nums, and we want to count how many w… |
| 3389 | Minimum Operations to Make Character Frequencies Equal | 🔴 Hard | 43s | The problem requires transforming a given string s into a good stri… |
| 3390 | Longest Team Pass Streak | 🔴 Hard | 1m 39s | This problem asks us to analyze a football match pass sequence and … |
| 3391 | Design a 3D Binary Matrix with Efficient Layer Tracking | 🟡 Medium | 1m 30s | The problem asks us to design a data structure that manages a 3D bi… |
| 3392 | Count Subarrays of Length Three With a Condition | 🟢 Easy | 1m 10s | The problem gives us an integer array nums and asks us to count how… |
| 3393 | Count Paths With the Given XOR Value | 🟡 Medium | 1m 56s | The problem gives us an m x n grid where each cell contains a small… |
| 3394 | Check if Grid can be Cut into Sections | 🟡 Medium | 13m 5s | LeetCode 3394: Check if Grid can be Cut into Sections (Medium) |
| 3395 | Subsequences with a Unique Middle Mode I | 🔴 Hard | 1m 45s | We are given an integer array nums, and we must count how many subs… |
| 3396 | Minimum Number of Operations to Make Elements in Array Distinct | 🟢 Easy | 1m 9s | The problem gives us an integer array nums, and our goal is to make… |
| 3397 | Maximum Number of Distinct Elements After Operations | 🟡 Medium | 44s | The problem asks us to maximize the number of distinct elements in … |
| 3398 | Smallest Substring With Identical Characters I | 🔴 Hard | 55s | The problem gives us a binary string s consisting of only '0' and '… |
| 3399 | Smallest Substring With Identical Characters II | 🔴 Hard | 1m 15s | We are given a binary string s consisting only of '0' and '1', alon… |