LeetCode 06xx

LeetCode problems 600–699

100 items

LeetCode 06xx

# Problem Difficulty Time Notes
600 Non-negative Integers without Consecutive Ones 🔴 Hard 2m 16s That is a long-form technical guide request with multiple required …
601 Human Traffic of Stadium 🔴 Hard 1m 42s The problem asks us to extract all consecutive records from a Stadi…
602 Friend Requests II: Who Has the Most Friends 🟡 Medium 1m 10s The problem gives us a database table named RequestAccepted, where …
603 Consecutive Available Seats 🟢 Easy 1m 24s The problem gives us a database table named Cinema with two columns…
604 Design Compressed String Iterator 🟢 Easy 33s This problem asks us to implement a compressed string iterator. We …
605 Can Place Flowers 🟢 Easy 56s The problem gives us a binary array called flowerbed, where: - 0 re…
606 Construct String from Binary Tree 🟡 Medium 1m 10s This problem asks us to convert a binary tree into a string using a…
607 Sales Person 🟢 Easy 48s This problem asks us to find the names of all salespeople who have …
608 Tree Node 🟡 Medium 1m 44s This problem gives us a database table named Tree, where each row r…
609 Find Duplicate File in System 🟡 Medium 58s The problem gives us a list of directory descriptions, where each s…
610 Triangle Judgement 🟢 Easy 36s The problem is asking us to determine, for each row in a table call…
611 Valid Triangle Number 🟡 Medium 44s The problem asks us to determine how many triplets from a given int…
612 Shortest Distance in a Plane 🟡 Medium 57s This problem gives us a database table named Point2D, where every r…
613 Shortest Distance in a Line 🟢 Easy 1m 8s This problem gives us a database table named Point that contains in…
614 Second Degree Follower 🟡 Medium 34s This problem asks us to identify second-degree followers from a soc…
615 Average Salary: Departments VS Company 🔴 Hard 1m This problem asks us to compare the average salary of each departme…
616 Add Bold Tag in String 🟡 Medium 58s The problem asks us to insert HTML-style bold tags into a string wh…
617 Merge Two Binary Trees 🟢 Easy 1m 13s This problem asks us to combine two binary trees into a single merg…
618 Students Report By Geography 🔴 Hard 30s The problem asks us to transform a table of student names and their…
619 Biggest Single Number 🟢 Easy 52s The problem gives us a database table named MyNumbers that contains…
620 Not Boring Movies 🟢 Easy 36s The problem is asking us to query a database table called Cinema an…
621 Task Scheduler 🟡 Medium 51s The Task Scheduler problem asks us to determine the minimum number …
622 Design Circular Queue 🟡 Medium 52s The problem asks us to implement a circular queue, a fixed-size que…
623 Add One Row to Tree 🟡 Medium 44s The problem asks us to modify a binary tree by adding a new row of …
624 Maximum Distance in Arrays 🟡 Medium 38s The problem presents a list of m arrays, each individually sorted i…
625 Minimum Factorization 🟡 Medium 1m 3s The problem asks us to find the smallest positive integer x such th…
626 Exchange Seats 🟡 Medium 41s This problem asks us to swap the seat IDs of every two consecutive …
627 Swap Sex of Employees 🟢 Easy 42s The problem is asking us to swap the sex values of all employees in…
628 Maximum Product of Three Numbers 🟢 Easy 58s The problem gives an integer array nums and asks us to select exact…
629 K Inverse Pairs Array 🔴 Hard 34s Here’s a full technical solution guide following your formatting ru…
630 Course Schedule III 🔴 Hard 1m 18s The problem gives a list of online courses, where each course is re…
631 Design Excel Sum Formula 🔴 Hard 1m 11s The problem asks us to design a miniature spreadsheet system simila…
632 Smallest Range Covering Elements from K Lists 🔴 Hard 1m 16s The problem gives us k sorted integer lists, and we must find the s…
633 Sum of Square Numbers 🟡 Medium 1m 2s The problem gives a non-negative integer c and asks whether it can …
634 Find the Derangement of An Array 🟡 Medium 56s The problem asks us to count how many permutations of the numbers 1…
635 Design Log Storage System 🟡 Medium 35s The problem is asking us to design a log storage system that suppor…
636 Exclusive Time of Functions 🟡 Medium 1m 7s This problem models how functions execute on a single-threaded CPU.…
637 Average of Levels in Binary Tree 🟢 Easy 1m 10s In this problem, we are given the root node of a binary tree, and w…
638 Shopping Offers 🟡 Medium 34s This problem asks us to find the minimum cost to buy a set of items…
639 Decode Ways II 🔴 Hard 42s The problem asks us to determine the number of ways an encoded stri…
640 Solve the Equation 🟡 Medium 41s The problem is asking us to solve a linear equation containing a si…
641 Design Circular Deque 🟡 Medium 1m 7s The problem asks us to design a circular double-ended queue, also c…
642 Design Search Autocomplete System 🔴 Hard 1m 18s The problem asks us to design an autocomplete system that behaves s…
643 Maximum Average Subarray I 🟢 Easy 47s The problem asks us to find the maximum average value among all con…
644 Maximum Average Subarray II 🔴 Hard 1m 5s The problem asks us to find the maximum possible average value amon…
645 Set Mismatch 🟢 Easy 59s The problem describes a corrupted set of integers. Originally, the …
646 Maximum Length of Pair Chain 🟡 Medium 1m 12s The problem gives us an array of integer pairs, where each pair rep…
647 Palindromic Substrings 🟡 Medium 1m The problem asks us to count how many palindromic substrings exist …
648 Replace Words 🟡 Medium 56s The problem asks us to replace words in a sentence using a set of p…
649 Dota2 Senate 🟡 Medium 1m 5s The problem describes a turn-based voting process between two parti…
650 2 Keys Keyboard 🟡 Medium 57s The problem is asking for the minimum number of operations required…
651 4 Keys Keyboard 🟡 Medium 57s The problem gives us a keyboard with four operations: - Press A, wh…
652 Find Duplicate Subtrees 🟡 Medium 1m 16s The problem gives us the root of a binary tree and asks us to ident…
653 Two Sum IV - Input is a BST 🟢 Easy 1m 1s This problem gives us the root of a Binary Search Tree (BST) and an…
654 Maximum Binary Tree 🟡 Medium 30s The problem asks us to construct a maximum binary tree from a given…
655 Print Binary Tree 🟡 Medium 1m 5s The problem asks us to transform a binary tree into a formatted 2D …
656 Coin Path 🔴 Hard 1m 19s This problem asks us to find the cheapest valid path through an arr…
657 Robot Return to Origin 🟢 Easy 42s This problem asks us to determine whether a robot, starting at the …
658 Find K Closest Elements 🟡 Medium 55s The problem gives us a sorted integer array arr, along with two int…
659 Split Array into Consecutive Subsequences 🟡 Medium 1m 19s The problem gives us a sorted integer array nums, and asks whether …
660 Remove 9 🔴 Hard 1m 16s The problem defines a modified sequence of positive integers where …
661 Image Smoother 🟢 Easy 45s The problem is asking us to implement an image smoother, a filter t…
662 Maximum Width of Binary Tree 🟡 Medium 1m 8s The problem asks us to compute the maximum width among all levels o…
663 Equal Tree Partition 🟡 Medium 1m 15s The problem asks whether it is possible to split a binary tree into…
664 Strange Printer 🔴 Hard 55s The problem describes a "strange printer" that can print sequences …
665 Non-decreasing Array 🟡 Medium 37s The problem asks whether it is possible to transform a given intege…
666 Path Sum IV 🟡 Medium 1m 10s This problem encodes a binary tree into a compact array of three-di…
667 Beautiful Arrangement II 🟡 Medium 1m 12s The problem asks us to construct a permutation of the integers from…
668 Kth Smallest Number in Multiplication Table 🔴 Hard 1m 12s The problem gives us an m x n multiplication table where each cell …
669 Trim a Binary Search Tree 🟡 Medium 1m 8s LeetCode 669, Trim a Binary Search Tree, asks us to modify a binary…
670 Maximum Swap 🟡 Medium 38s The problem asks us to take an integer num and find the maximum num…
671 Second Minimum Node In a Binary Tree 🟢 Easy 38s The problem provides a special binary tree where each node either h…
672 Bulb Switcher II 🟡 Medium 1m 14s The problem describes a room containing n light bulbs, where every …
673 Number of Longest Increasing Subsequence 🟡 Medium 1m 4s The problem asks us to determine how many longest strictly increasi…
674 Longest Continuous Increasing Subsequence 🟢 Easy 1m 2s The problem asks us to find the length of the longest strictly incr…
675 Cut Off Trees for Golf Event 🔴 Hard 1m 23s The problem gives us a two dimensional grid representing a forest. …
676 Implement Magic Dictionary 🟡 Medium 1m 11s The problem asks us to design a dictionary-like data structure that…
677 Map Sum Pairs 🟡 Medium 1m 7s The problem asks us to design a custom data structure that behaves …
678 Valid Parenthesis String 🟡 Medium 32s This problem is asking whether a string containing the characters '…
679 24 Game 🔴 Hard 40s The problem is asking us to determine whether it is possible to use…
680 Valid Palindrome II 🟢 Easy 59s The problem asks whether a given string s can become a palindrome a…
681 Next Closest Time 🟡 Medium 1m 14s The problem gives us a valid time string in the format "HH:MM" and …
682 Baseball Game 🟢 Easy 58s This problem asks us to simulate a baseball scoring system with a s…
683 K Empty Slots 🔴 Hard 33s Let's go through a complete, detailed technical solution guide for …
684 Redundant Connection 🟡 Medium 32s The problem is asking us to identify a redundant edge in a graph th…
685 Redundant Connection II 🔴 Hard 38s The problem asks us to identify a redundant edge in a directed grap…
686 Repeated String Match 🟡 Medium 34s The problem asks us to determine the minimum number of times a stri…
687 Longest Univalue Path 🟡 Medium 1m 1s This problem asks us to find the longest path in a binary tree wher…
688 Knight Probability in Chessboard 🟡 Medium 1m 23s The problem asks us to compute the probability that a chess knight …
689 Maximum Sum of 3 Non-Overlapping Subarrays 🔴 Hard 1m 21s The problem asks us to select exactly three non-overlapping subarra…
690 Employee Importance 🟡 Medium 1m 15s The problem provides a collection of employees where each employee …
691 Stickers to Spell Word 🔴 Hard 34s Let's dive deep into a detailed technical solution guide for LeetCo…
692 Top K Frequent Words 🟡 Medium 1m 16s The problem gives us an array of strings called words and an intege…
693 Binary Number with Alternating Bits 🟢 Easy 41s The problem asks us to determine whether the binary representation …
694 Number of Distinct Islands 🟡 Medium 1m 20s The problem gives us a binary matrix called grid, where each cell c…
695 Max Area of Island 🟡 Medium 31s The problem is asking us to find the largest connected area of land…
696 Count Binary Substrings 🟢 Easy 1m The problem gives us a binary string, meaning the string contains o…
697 Degree of an Array 🟢 Easy 46s The problem asks us to find the shortest contiguous subarray of an …
698 Partition to K Equal Sum Subsets 🟡 Medium 44s The problem is asking whether an array of integers nums can be divi…
699 Falling Squares 🔴 Hard 1m 15s The problem describes a simulation of squares falling onto the X-ax…