Two Sum


Add Two Numbers


Longest Substring Without Repeating Characters


Median of Two Sorted Arrays


Longest Palindromic Substring


Zigzag Conversion


Reverse Integer


String to Integer (atoi)


Palindrome Number


Regular Expression Matching


Container With Most Water


Integer to Roman


Roman to Integer


Longest Common Prefix


3Sum


3Sum Closest


Letter Combinations of a Phone Number


4Sum


Remove Nth Node From End of List


Valid Parentheses


Merge Two Sorted Lists


Generate Parentheses


Merge k Sorted Lists


Swap Nodes in Pairs


Reverse Nodes in k-Group


Remove Duplicates from Sorted Array


Remove Element


Find the Index of the First Occurrence in a String


Divide Two Integers


Substring with Concatenation of All Words


Next Permutation


Longest Valid Parentheses


Search in Rotated Sorted Array


Find First and Last Position of Element in Sorted Array


Search Insert Position


Valid Sudoku


Sudoku Solver


Count and Say


Combination Sum


Combination Sum II


First Missing Positive


Trapping Rain Water


Multiply Strings


Wildcard Matching


Jump Game II


Permutations


Permutations II


Rotate Image


Group Anagrams


Pow(x, n)


N-Queens


N-Queens II


Maximum Subarray


Spiral Matrix


Jump Game


Merge Intervals


Insert Interval


Length of Last Word


Spiral Matrix II


Permutation Sequence


Rotate List


Unique Paths


Unique Paths II


Minimum Path Sum


Valid Number


Plus One


Add Binary


Text Justification


Sqrt(x)


Climbing Stairs


Simplify Path


Edit Distance


Set Matrix Zeroes


Search a 2D Matrix


Sort Colors


Minimum Window Substring


Combinations


Subsets


Word Search


Remove Duplicates from Sorted Array II


Search in Rotated Sorted Array II


Remove Duplicates from Sorted List II


Remove Duplicates from Sorted List


Largest Rectangle in Histogram


Maximal Rectangle


Partition List


Scramble String


Merge Sorted Array


Gray Code


Subsets II


Decode Ways


Reverse Linked List II


Restore IP Addresses


Binary Tree Inorder Traversal


Unique Binary Search Trees II


Unique Binary Search Trees


Interleaving String


Validate Binary Search Tree


Recover Binary Search Tree


Same Tree


Symmetric Tree


Binary Tree Level Order Traversal


Binary Tree Zigzag Level Order Traversal


Maximum Depth of Binary Tree


Construct Binary Tree from Preorder and Inorder Traversal


Construct Binary Tree from Inorder and Postorder Traversal


Binary Tree Level Order Traversal II


Convert Sorted Array to Binary Search Tree


Convert Sorted List to Binary Search Tree


Balanced Binary Tree


Minimum Depth of Binary Tree


Path Sum


Path Sum II


Flatten Binary Tree to Linked List


Distinct Subsequences


Populating Next Right Pointers in Each Node


Populating Next Right Pointers in Each Node II


Pascal's Triangle


Pascal's Triangle II


Triangle


Best Time to Buy and Sell Stock


Best Time to Buy and Sell Stock II


Best Time to Buy and Sell Stock III


Binary Tree Maximum Path Sum


Valid Palindrome


Word Ladder II


Word Ladder


Longest Consecutive Sequence


Sum Root to Leaf Numbers


Surrounded Regions


Palindrome Partitioning


Palindrome Partitioning II


Clone Graph


Gas Station


Candy


Single Number


Single Number II


Copy List with Random Pointer


Word Break


Word Break II


Linked List Cycle


Linked List Cycle II


Reorder List


Binary Tree Preorder Traversal


Binary Tree Postorder Traversal


LRU Cache


Insertion Sort List


Sort List


Max Points on a Line


Evaluate Reverse Polish Notation


Reverse Words in a String


Maximum Product Subarray


Find Minimum in Rotated Sorted Array


Find Minimum in Rotated Sorted Array II


Min Stack


Binary Tree Upside Down


Read N Characters Given Read4


Read N Characters Given read4 II - Call Multiple Times


Longest Substring with At Most Two Distinct Characters


Intersection of Two Linked Lists


One Edit Distance


Find Peak Element


Missing Ranges


Maximum Gap


Compare Version Numbers


Fraction to Recurring Decimal


Two Sum II - Input Array Is Sorted


Excel Sheet Column Title


Majority Element


Two Sum III - Data structure design


Excel Sheet Column Number


Factorial Trailing Zeroes


Binary Search Tree Iterator


Dungeon Game


Combine Two Tables


Second Highest Salary


Nth Highest Salary


Rank Scores


Largest Number


Consecutive Numbers


Employees Earning More Than Their Managers


Duplicate Emails


Customers Who Never Order


Department Highest Salary


Department Top Three Salaries


Reverse Words in a String II


Repeated DNA Sequences


Best Time to Buy and Sell Stock IV


Rotate Array


Reverse Bits


Number of 1 Bits


Word Frequency


Valid Phone Numbers


Transpose File


Tenth Line


Delete Duplicate Emails


Rising Temperature


House Robber


Binary Tree Right Side View


Number of Islands


Bitwise AND of Numbers Range


Happy Number


Remove Linked List Elements


Count Primes


Isomorphic Strings


Reverse Linked List


Course Schedule


Implement Trie (Prefix Tree)


Minimum Size Subarray Sum


Course Schedule II


Design Add and Search Words Data Structure


Word Search II


House Robber II


Shortest Palindrome


Kth Largest Element in an Array


Combination Sum III


Contains Duplicate


The Skyline Problem


Contains Duplicate II


Contains Duplicate III


Maximal Square


Count Complete Tree Nodes


Rectangle Area


Basic Calculator


Implement Stack using Queues


Invert Binary Tree


Basic Calculator II


Summary Ranges


Majority Element II


Kth Smallest Element in a BST


Power of Two


Implement Queue using Stacks


Number of Digit One


Palindrome Linked List


Lowest Common Ancestor of a Binary Search Tree


Lowest Common Ancestor of a Binary Tree


Delete Node in a Linked List


Product of Array Except Self


Sliding Window Maximum


Search a 2D Matrix II


Different Ways to Add Parentheses


Valid Anagram


Shortest Word Distance


Shortest Word Distance II


Shortest Word Distance III


Strobogrammatic Number


Strobogrammatic Number II


Strobogrammatic Number III


Group Shifted Strings


Count Univalue Subtrees


Flatten 2D Vector


Meeting Rooms


Meeting Rooms II


Factor Combinations


Verify Preorder Sequence in Binary Search Tree


Paint House


Binary Tree Paths


Add Digits


3Sum Smaller


Single Number III


Graph Valid Tree


Trips and Users


Ugly Number


Ugly Number II


Paint House II


Palindrome Permutation


Palindrome Permutation II


Missing Number


Alien Dictionary


Closest Binary Search Tree Value


Encode and Decode Strings


Closest Binary Search Tree Value II


Integer to English Words


H-Index


H-Index II


Paint Fence


Find the Celebrity


First Bad Version


Perfect Squares


Wiggle Sort


Zigzag Iterator


Expression Add Operators


Move Zeroes


Peeking Iterator


Inorder Successor in BST


Walls and Gates


Find the Duplicate Number


Unique Word Abbreviation


Game of Life


Word Pattern


Word Pattern II


Nim Game


Flip Game


Flip Game II


Find Median from Data Stream


Best Meeting Point


Serialize and Deserialize Binary Tree


Binary Tree Longest Consecutive Sequence


Bulls and Cows


Longest Increasing Subsequence


Remove Invalid Parentheses


Smallest Rectangle Enclosing Black Pixels


Range Sum Query - Immutable


Range Sum Query 2D - Immutable


Number of Islands II


Additive Number


Range Sum Query - Mutable


Range Sum Query 2D - Mutable


Best Time to Buy and Sell Stock with Cooldown


Minimum Height Trees


Sparse Matrix Multiplication


Burst Balloons


Super Ugly Number


Binary Tree Vertical Order Traversal


Count of Smaller Numbers After Self


Remove Duplicate Letters


Shortest Distance from All Buildings


Maximum Product of Word Lengths


Bulb Switcher


Generalized Abbreviation


Create Maximum Number


Coin Change


Number of Connected Components in an Undirected Graph


Wiggle Sort II


Maximum Size Subarray Sum Equals k


Power of Three


Count of Range Sum


Odd Even Linked List


Longest Increasing Path in a Matrix


Patching Array


Verify Preorder Serialization of a Binary Tree


Reconstruct Itinerary


Largest BST Subtree


Increasing Triplet Subsequence


Self Crossing


Palindrome Pairs


House Robber III


Counting Bits


Nested List Weight Sum


Longest Substring with At Most K Distinct Characters


Flatten Nested List Iterator


Power of Four


Integer Break


Reverse String


Reverse Vowels of a String


Moving Average from Data Stream


Top K Frequent Elements


Design Tic-Tac-Toe


Intersection of Two Arrays


Intersection of Two Arrays II


Android Unlock Patterns


Data Stream as Disjoint Intervals


Design Snake Game


Russian Doll Envelopes


Design Twitter


Line Reflection


Count Numbers with Unique Digits


Rearrange String k Distance Apart


Logger Rate Limiter


Sort Transformed Array


Bomb Enemy


Design Hit Counter


Max Sum of Rectangle No Larger Than K


Nested List Weight Sum II


Water and Jug Problem


Find Leaves of Binary Tree


Valid Perfect Square


Largest Divisible Subset


Plus One Linked List


Range Addition


Sum of Two Integers


Super Pow


Find K Pairs with Smallest Sums


Guess Number Higher or Lower


Guess Number Higher or Lower II


Wiggle Subsequence


Combination Sum IV


Kth Smallest Element in a Sorted Matrix


Design Phone Directory


Insert Delete GetRandom O(1)


Insert Delete GetRandom O(1) - Duplicates allowed


Linked List Random Node


Ransom Note


Shuffle an Array


Mini Parser


Lexicographical Numbers


First Unique Character in a String


Longest Absolute File Path


Find the Difference


Elimination Game


Perfect Rectangle


Is Subsequence


UTF-8 Validation


Decode String


Longest Substring with At Least K Repeating Characters


Rotate Function


Integer Replacement


Random Pick Index


Evaluate Division


Nth Digit


Binary Watch


Remove K Digits


Frog Jump


Sum of Left Leaves


Convert a Number to Hexadecimal


Queue Reconstruction by Height


Trapping Rain Water II


Valid Word Abbreviation


Longest Palindrome


Split Array Largest Sum


Minimum Unique Word Abbreviation


Fizz Buzz


Arithmetic Slices


Third Maximum Number


Add Strings


Partition Equal Subset Sum


Pacific Atlantic Water Flow


Sentence Screen Fitting


Battleships in a Board


Strong Password Checker


Maximum XOR of Two Numbers in an Array


Valid Word Square


Reconstruct Original Digits from English


Longest Repeating Character Replacement


Word Squares


All O`one Data Structure


Minimum Genetic Mutation


Number of Segments in a String


Non-overlapping Intervals


Find Right Interval


Path Sum III


Find All Anagrams in a String


Ternary Expression Parser


K-th Smallest in Lexicographical Order


Arranging Coins


Find All Duplicates in an Array


String Compression


Sequence Reconstruction


Add Two Numbers II


Arithmetic Slices II - Subsequence


Number of Boomerangs


Find All Numbers Disappeared in an Array


Serialize and Deserialize BST


Delete Node in a BST


Sort Characters By Frequency


Minimum Number of Arrows to Burst Balloons


Minimum Moves to Equal Array Elements


4Sum II


Assign Cookies


132 Pattern


Circular Array Loop


Poor Pigs


Repeated Substring Pattern


LFU Cache


Hamming Distance


Minimum Moves to Equal Array Elements II


Island Perimeter


Can I Win


Optimal Account Balancing


Count The Repetitions


Unique Substrings in Wraparound String


Validate IP Address


Convex Polygon


Encode String with Shortest Length


Concatenated Words


Matchsticks to Square


Ones and Zeroes


Heaters


Number Complement


Total Hamming Distance


Largest Palindrome Product


Sliding Window Median


Magical String


License Key Formatting


Smallest Good Base


Find Permutation


Max Consecutive Ones


Predict the Winner


Max Consecutive Ones II


Zuma Game


Kth Smallest Instructions


The Maze


Non-decreasing Subsequences


Construct the Rectangle


Reverse Pairs


Target Sum


Teemo Attacking


Next Greater Element I


Diagonal Traverse


The Maze III


Keyboard Row


Find Mode in Binary Search Tree


IPO


Next Greater Element II


Base 7


The Maze II


Relative Ranks


Perfect Number


Most Frequent Subtree Sum


Inorder Successor in BST II


Count Subarrays With More Ones Than Zeros


All Paths from Source Lead to Destination


Maximum Alternating Subarray Sum


Find Bottom Left Tree Value


Freedom Trail


Find Largest Value in Each Tree Row


Longest Palindromic Subsequence


Super Washing Machines


Coin Change II


Widest Pair of Indices With Equal Range Sum


Detect Capital


Longest Uncommon Subsequence I


Longest Uncommon Subsequence II


Continuous Subarray Sum


Longest Word in Dictionary through Deleting


Contiguous Array


Beautiful Arrangement


Word Abbreviation


Swapping Nodes in a Linked List


Minesweeper


Minimum Absolute Difference in BST


Lonely Pixel I


K-diff Pairs in an Array


Lonely Pixel II


Encode and Decode TinyURL


Construct Binary Tree from String


Complex Number Multiplication


Convert BST to Greater Tree


Minimum Time Difference


Single Element in a Sorted Array


Reverse String II


01 Matrix


Diameter of Binary Tree


Output Contest Matches


Boundary of Binary Tree


Remove Boxes


Number of Provinces


Split Array with Equal Sum


Binary Tree Longest Consecutive Sequence II


Shortest Path to Get Food


Student Attendance Record I


Student Attendance Record II


Optimal Division


Brick Wall


Split Concatenated Strings


Next Greater Element III


Reverse Words in a String III


Subarray Sum Equals K


Array Partition


Longest Line of Consecutive One in Matrix


Binary Tree Tilt


Find the Closest Palindrome


Array Nesting


Reshape the Matrix


Permutation in String


Maximum Vacation Days


Median Employee Salary


Managers with at Least 5 Direct Reports


Find Median Given Frequency of Numbers


Subtree of Another Tree


Squirrel Simulation


Winning Candidate


Distribute Candies


Out of Boundary Paths


Employee Bonus


Get Highest Answer Rate Question


Find Cumulative Salary of an Employee


Count Student Number in Departments


Shortest Unsorted Continuous Subarray


Kill Process


Delete Operation for Two Strings


Find Customer Referee


Investments in 2016


Customer Placing the Largest Number of Orders


Erect the Fence


Design In-Memory File System


Tag Validator


Fraction Addition and Subtraction


Valid Square


Longest Harmonious Subsequence


Big Countries


Classes With at Least 5 Students


Friend Requests I: Overall Acceptance Rate


Range Addition II


Minimum Index Sum of Two Lists


Non-negative Integers without Consecutive Ones


Human Traffic of Stadium


Friend Requests II: Who Has the Most Friends


Consecutive Available Seats


Design Compressed String Iterator


Can Place Flowers


Construct String from Binary Tree


Sales Person


Tree Node


Find Duplicate File in System


Triangle Judgement


Valid Triangle Number


Shortest Distance in a Plane


Shortest Distance in a Line


Second Degree Follower


Average Salary: Departments VS Company


Add Bold Tag in String


Merge Two Binary Trees


Students Report By Geography


Biggest Single Number


Not Boring Movies


Task Scheduler


Add One Row to Tree


Maximum Distance in Arrays


Minimum Factorization


Exchange Seats


Swap Sex of Employees


Maximum Product of Three Numbers


K Inverse Pairs Array


Course Schedule III


Design Excel Sum Formula


Smallest Range Covering Elements from K Lists


Sum of Square Numbers


Find the Derangement of An Array


Design Log Storage System


Exclusive Time of Functions


Average of Levels in Binary Tree


Shopping Offers


Decode Ways II


Solve the Equation


Design Search Autocomplete System


Maximum Average Subarray I


Maximum Average Subarray II


Set Mismatch


Maximum Length of Pair Chain


Palindromic Substrings


Replace Words


Dota2 Senate


2 Keys Keyboard


4 Keys Keyboard


Find Duplicate Subtrees


Two Sum IV - Input is a BST


Maximum Binary Tree


Print Binary Tree


Coin Path


Robot Return to Origin


Find K Closest Elements


Split Array into Consecutive Subsequences


Remove 9


Image Smoother


Maximum Width of Binary Tree


Equal Tree Partition


Strange Printer


Non-decreasing Array


Path Sum IV


Beautiful Arrangement II


Kth Smallest Number in Multiplication Table


Trim a Binary Search Tree


Maximum Swap


Second Minimum Node In a Binary Tree


Bulb Switcher II


Number of Longest Increasing Subsequence


Longest Continuous Increasing Subsequence


Cut Off Trees for Golf Event


Implement Magic Dictionary


Map Sum Pairs


Valid Parenthesis String


24 Game


Valid Palindrome II


Next Closest Time


Baseball Game


K Empty Slots


Redundant Connection


Redundant Connection II


Repeated String Match


Longest Univalue Path


Knight Probability in Chessboard


Maximum Sum of 3 Non-Overlapping Subarrays


Employee Importance


Stickers to Spell Word


Top K Frequent Words


Binary Number with Alternating Bits


Number of Distinct Islands


Max Area of Island


Count Binary Substrings


Degree of an Array


Partition to K Equal Sum Subsets


Falling Squares


Number of Distinct Islands II


Minimum ASCII Delete Sum for Two Strings


Subarray Product Less Than K


Best Time to Buy and Sell Stock with Transaction Fee


Range Module


Max Stack


1-bit and 2-bit Characters


Maximum Length of Repeated Subarray


Find K-th Smallest Pair Distance


Longest Word in Dictionary


Accounts Merge


Remove Comments


Candy Crush


Find Pivot Index


Split Linked List in Parts


Number of Atoms


Minimum Window Subsequence


Self Dividing Numbers


My Calendar I


Count Different Palindromic Subsequences


My Calendar II


My Calendar III


Flood Fill


Sentence Similarity


Asteroid Collision


Parse Lisp Expression


Sentence Similarity II


Monotone Increasing Digits


Daily Temperatures


Delete and Earn


Cherry Pickup


To Lower Case


Closest Leaf in a Binary Tree


Network Delay Time


Find Smallest Letter Greater Than Target


Prefix and Suffix Search


Min Cost Climbing Stairs


Largest Number At Least Twice of Others


Shortest Completing Word


Contain Virus


Number Of Corner Rectangles


IP to CIDR


Open the Lock


Cracking the Safe


Reach a Number


Pour Water


Pyramid Transition Matrix


Convert Binary Search Tree to Sorted Doubly Linked List


Set Intersection Size At Least Two


Bold Words in String


Employee Free Time


Find Anagram Mappings


Special Binary String


N-ary Tree Level Order Traversal


Serialize and Deserialize N-ary Tree


Flatten a Multilevel Doubly Linked List


Prime Number of Set Bits in Binary Representation


Partition Labels


Largest Plus Sign


Couples Holding Hands


Encode N-ary Tree to Binary Tree


Construct Quad Tree


Logical OR of Two Binary Grids Represented as Quad-Trees


Maximum Depth of N-ary Tree


N-ary Tree Preorder Traversal


N-ary Tree Postorder Traversal


Toeplitz Matrix


Reorganize String


Max Chunks To Make Sorted II


Max Chunks To Make Sorted


Basic Calculator IV


Jewels and Stones


Search in a Binary Search Tree


Insert into a Binary Search Tree


Basic Calculator III


Search in a Sorted Array of Unknown Size


Sliding Puzzle


Minimize Max Distance to Gas Station


Kth Largest Element in a Stream


Global and Local Inversions


Split BST


Binary Search


Swap Adjacent in LR String


Swim in Rising Water


K-th Symbol in Grammar


Reaching Points


Rabbits in Forest


Transform to Chessboard


Minimum Distance Between BST Nodes


Letter Case Permutation


Is Graph Bipartite?


K-th Smallest Prime Fraction


Cheapest Flights Within K Stops


Rotated Digits


Escape The Ghosts


Domino and Tromino Tiling


Custom Sort String


Number of Matching Subsequences


Preimage Size of Factorial Zeroes Function


Valid Tic-Tac-Toe State


Number of Subarrays with Bounded Maximum


Rotate String


All Paths From Source to Target


Smallest Rotation with Highest Score


Champagne Tower


Design HashSet


Design HashMap


Similar RGB Color


Minimum Swaps To Make Sequences Increasing


Find Eventual Safe States


Bricks Falling When Hit


Unique Morse Code Words


Split Array With Same Average


Number of Lines To Write String


Max Increase to Keep City Skyline


Soup Servings


Expressive Words


Chalkboard XOR Game


Subdomain Visit Count


Largest Triangle Area


Largest Sum of Averages


Binary Tree Pruning


Bus Routes


Ambiguous Coordinates


Linked List Components


Race Car


Most Common Word


Design Linked List


Short Encoding of Words


Shortest Distance to a Character


Card Flipping Game


Binary Trees With Factors


Insert into a Sorted Circular Linked List


Goat Latin


Friends Of Appropriate Ages


Most Profit Assigning Work


Making A Large Island


Count Unique Characters of All Substrings of a Given String


Consecutive Numbers Sum


Positions of Large Groups


Masking Personal Information


Design Circular Deque


Design Circular Queue


Flipping an Image


Find And Replace in String


Sum of Distances in Tree


Image Overlap


Robot Room Cleaner


Rectangle Overlap


New 21 Game


Push Dominoes


Similar String Groups


Magic Squares In Grid


Keys and Rooms


Split Array into Fibonacci Sequence


Guess the Word


Backspace String Compare


Longest Mountain in Array


Hand of Straights


Shortest Path Visiting All Nodes


Shifting Letters


Maximize Distance to Closest Person


Rectangle Area II


Loud and Rich


Peak Index in a Mountain Array


Car Fleet


K-Similar Strings


Exam Room


Score of Parentheses


Minimum Cost to Hire K Workers


Mirror Reflection


Buddy Strings


Lemonade Change


Score After Flipping Matrix


Shortest Subarray with Sum at Least K


All Nodes Distance K in Binary Tree


Random Pick with Blacklist


Shortest Path to Get All Keys


Smallest Subtree with all the Deepest Nodes


Prime Palindrome


Transpose Matrix


Binary Gap


Reordered Power of 2


Advantage Shuffle


Minimum Number of Refueling Stops


Implement Rand10() Using Rand7()


Leaf-Similar Trees


Length of Longest Fibonacci Subsequence


Walking Robot Simulation


Koko Eating Bananas


Middle of the Linked List


Stone Game


Nth Magical Number


Profitable Schemes


Random Pick with Weight


Random Flip Matrix


Random Point in Non-overlapping Rectangles


Generate Random Point in a Circle


Decoded String at Index


Boats to Save People


Reachable Nodes In Subdivided Graph


Projection Area of 3D Shapes


Uncommon Words from Two Sentences


Spiral Matrix III


Possible Bipartition


Super Egg Drop


Fair Candy Swap


Construct Binary Tree from Preorder and Postorder Traversal


Find and Replace Pattern


Sum of Subsequence Widths


Surface Area of 3D Shapes


Groups of Special-Equivalent Strings


All Possible Full Binary Trees


Maximum Frequency Stack


Monotonic Array


Increasing Order Search Tree


Bitwise ORs of Subarrays


Orderly Queue


RLE Iterator


Online Stock Span


Numbers At Most N Given Digit Set


Valid Permutations for DI Sequence


Fruit Into Baskets


Sort Array By Parity


Super Palindromes


Sum of Subarray Minimums


Smallest Range I


Snakes and Ladders


Smallest Range II


Online Election


Sort an Array


Cat and Mouse


X of a Kind in a Deck of Cards


Partition Array into Disjoint Intervals


Word Subsets


Reverse Only Letters


Maximum Sum Circular Subarray


Complete Binary Tree Inserter


Number of Music Playlists


Minimum Add to Make Parentheses Valid


Sort Array By Parity II


3Sum With Multiplicity


Minimize Malware Spread


Long Pressed Name


Flip String to Monotone Increasing


Three Equal Parts


Minimize Malware Spread II


Unique Email Addresses


Binary Subarrays With Sum


Minimum Falling Path Sum


Beautiful Array


Number of Recent Calls


Shortest Bridge


Knight Dialer


Stamping The Sequence


Reorder Data in Log Files


Range Sum of BST


Minimum Area Rectangle


Distinct Subsequences II


Valid Mountain Array


DI String Match


Find the Shortest Superstring


Delete Columns to Make Sorted


Minimum Increment to Make Array Unique


Validate Stack Sequences


Most Stones Removed with Same Row or Column


Bag of Tokens


Largest Time for Given Digits


Reveal Cards In Increasing Order


Flip Equivalent Binary Trees


Largest Component Size by Common Factor


Verifying an Alien Dictionary


Array of Doubled Pairs


Delete Columns to Make Sorted II


Tallest Billboard


Prison Cells After N Days


Check Completeness of a Binary Tree


Regions Cut By Slashes


Delete Columns to Make Sorted III


N-Repeated Element in Size 2N Array


Maximum Width Ramp


Minimum Area Rectangle II


Least Operators to Express Number


Univalued Binary Tree


Vowel Spellchecker


Numbers With Same Consecutive Differences


Binary Tree Cameras


Pancake Sorting


Powerful Integers


Flip Binary Tree To Match Preorder Traversal


Equal Rational Numbers


Fibonacci Number


K Closest Points to Origin


Subarray Sums Divisible by K


Odd Even Jump


Largest Perimeter Triangle


Squares of a Sorted Array


Longest Turbulent Subarray


Distribute Coins in Binary Tree


Unique Paths III


Time Based Key-Value Store


Triples with Bitwise AND Equal To Zero


Minimum Cost For Tickets


String Without AAA or BBB


Sum of Even Numbers After Queries


Interval List Intersections


Vertical Order Traversal of a Binary Tree


Smallest String Starting From Leaf


Add to Array-Form of Integer


Satisfiability of Equality Equations


Broken Calculator


Subarrays with K Different Integers


Cousins in Binary Tree


Rotting Oranges


Minimum Number of K Consecutive Bit Flips


Number of Squareful Arrays


Find the Town Judge


Maximum Binary Tree II


Available Captures for Rook


Minimum Cost to Merge Stones


Grid Illumination


Find Common Characters


Check If Word Is Valid After Substitutions


Max Consecutive Ones III


Maximize Sum Of Array After K Negations


Clumsy Factorial


Minimum Domino Rotations For Equal Row


Construct Binary Search Tree from Preorder Traversal


Shortest Way to Form String


Campus Bikes


Minimize Rounding Error to Meet Target


Complement of Base 10 Integer


Pairs of Songs With Total Durations Divisible by 60


Capacity To Ship Packages Within D Days


Numbers With Repeated Digits


Lexicographically Smallest Equivalent String


Missing Element in Sorted Array


Longest Repeating Substring


Number of Valid Subarrays


Partition Array Into Three Parts With Equal Sum


Best Sightseeing Pair


Smallest Integer Divisible by K


Binary String With Substrings Representing 1 To N


Fixed Point


Campus Bikes II


Digit Count in Range


Confusing Number


Convert to Base -2


Binary Prefix Divisible By 5


Next Greater Node In Linked List


Number of Enclaves


High Five


Index Pairs of a String


Brace Expansion


Confusing Number II


Remove Outermost Parentheses


Sum of Root To Leaf Binary Numbers


Camelcase Matching


Video Stitching


Sum of Digits in the Minimum Number


Two Sum Less Than K


Find K-Length Substrings With No Repeated Characters


The Earliest Moment When Everyone Become Friends


Divisor Game


Longest Arithmetic Subsequence


Number of Days in a Month


Remove Vowels from a String


Armstrong Number


Maximum Average Subtree


Maximum Difference Between Node and Ancestor


Recover a Tree From Preorder Traversal


Matrix Cells in Distance Order


Two City Scheduling


Maximum Sum of Two Non-Overlapping Subarrays


Stream of Characters


Largest Unique Number


Path With Maximum Minimum Value


Connecting Cities With Minimum Cost


Parallel Courses


Check If a Number Is Majority Element in a Sorted Array


Moving Stones Until Consecutive


Coloring A Border


Uncrossed Lines


Escape a Large Maze


Minimum Swaps to Group All 1's Together


Analyze User Website Visit Pattern


Minimum Score Triangulation of Polygon


Find Words That Can Be Formed by Characters


Moving Stones Until Consecutive II


Binary Search Tree to Greater Sum Tree


Valid Boomerang


Maximum Level Sum of a Binary Tree


As Far from Land as Possible


Divide Array Into Increasing Sequences


Robot Bounded In Circle


Flower Planting With No Adjacent


Partition Array for Maximum Sum


Longest Duplicate Substring


Single-Row Keyboard


String Transforms Into Another String


Design File System


Minimum Cost to Connect Sticks


Last Stone Weight


Remove All Adjacent Duplicates In String


Longest String Chain


Last Stone Weight II


Count Substrings with Only One Distinct Letter


Before and After Puzzle


Last Substring in Lexicographical Order


Shortest Distance to Target Color


Customers Who Bought All Products


Actors and Directors Who Cooperated At Least Three Times


Height Checker


Grumpy Bookstore Owner


Previous Permutation With One Swap


Distant Barcodes


How Many Apples Can You Put into the Basket


Minimum Knight Moves


Find Smallest Common Element in All Rows


Optimize Water Distribution in a Village


Number of Submatrices That Sum to Target


Greatest Common Divisor of Strings


Flip Columns For Maximum Number of Equal Rows


Adding Two Negabinary Numbers


Intersection of Three Sorted Arrays


Two Sum BSTs


Stepping Numbers


Maximum Number of Ones


Product Sales Analysis I


Product Sales Analysis II


Product Sales Analysis III


Occurrences After Bigram


Insufficient Nodes in Root to Leaf Paths


Smallest Subsequence of Distinct Characters


Letter Tile Possibilities


Project Employees I


Project Employees II


Project Employees III


Missing Number In Arithmetic Progression


Meeting Scheduler


Toss Strange Coins


Minimum Time to Build Blocks


Duplicate Zeros


Largest Values From Labels


Shortest Common Supersequence


Shortest Path in Binary Matrix


Sales Analysis I


Sales Analysis II


Sales Analysis III


Array Transformation


Design A Leaderboard


Tree Diameter


Valid Palindrome III


Game Play Analysis I


Game Play Analysis II


Game Play Analysis III


Game Play Analysis IV


Statistics from a Large Sample


Car Pooling


Find in Mountain Array


Building H2O


Print FooBar Alternately


Brace Expansion II


Encode Number


Smallest Common Region


Synonymous Sentences


Divide Chocolate


Game Play Analysis V


Path In Zigzag Labelled Binary Tree


Distribute Candies to People


Filling Bookcase Shelves


Parsing A Boolean Expression


Unpopular Books


Hexspeak


Remove Interval


Delete Tree Nodes


Palindrome Removal


Print in Order


New Users Daily Count


Defanging an IP Address


Corporate Flight Bookings


Delete Nodes And Return Forest


Maximum Nesting Depth of Two Valid Parentheses Strings


Design Bounded Blocking Queue


Mean of Array After Removing Some Elements


Iterator for Combination


Sequential Digits


Handshakes That Don't Cross


Highest Grade For Each Student


Reported Posts


Print Zero Even Odd


Relative Sort Array


Lowest Common Ancestor of Deepest Leaves


Longest Well-Performing Interval


Smallest Sufficient Team


Element Appearing More Than 25% In Sorted Array


Remove Covered Intervals


Graph Connectivity With Threshold


Minimum Falling Path Sum II


Active Businesses


User Purchase Platform


Number of Equivalent Domino Pairs


Minimum Cost Tree From Leaf Values


Shortest Path with Alternating Colors


Maximum of Absolute Value Expression


Replace Elements with Greatest Element on Right Side


Sum of Mutated Array Closest to Target


Number of Ships in a Rectangle


Number of Paths with Max Score


N-th Tribonacci Number


Reported Posts II


Alphabet Board Path


Largest 1-Bordered Square


Stone Game II


Decompress Run-Length Encoded List


Matrix Block Sum


Sum of Nodes with Even-Valued Grandparent


Distinct Echo Substrings


User Activity for the Past 30 Days I


User Activity for the Past 30 Days II


Decrease Elements To Make Array Zigzag


Binary Tree Coloring Game


Snapshot Array


Longest Common Subsequence


Longest Chunked Palindrome Decomposition


Break a Palindrome


Sort the Matrix Diagonally


Deepest Leaves Sum


Reverse Subarray To Maximize Array Value


Rank Transform of an Array


Rank Transform of a Matrix


Article Views I


Article Views II


Day of the Year


Swap For Longest Repeated Character Substring


Online Majority Element In Subarray


Number of Dice Rolls With Target Sum


Maximum Number of Words You Can Type


Remove Zero Sum Consecutive Nodes from Linked List


Market Analysis I


Market Analysis II


Dinner Plate Stacks


Web Crawler


Invalid Transactions


Compare Strings by Frequency of the Smallest Character


Number of Days Between Two Dates


Validate Binary Tree Nodes


Closest Divisors


Largest Multiple of Three


Product Price at a Given Date


Prime Arrangements


Diet Plan Performance


Can Make Palindrome from Substring


Number of Valid Words for Each Puzzle


Reformat Date


Four Divisors


Balance a Binary Search Tree


Constrained Subsequence Sum


Distance Between Bus Stops


Maximum Subarray Sum with One Deletion


Day of the Week


Make Array Strictly Increasing


Immediate Food Delivery I


Immediate Food Delivery II


Three Consecutive Odds


Range Frequency Queries


Minimum Garden Perimeter to Collect Enough Apples


Kth Ancestor of a Tree Node


Maximum Number of Balloons


Reverse Substrings Between Each Pair of Parentheses


K-Concatenation Maximum Sum


Critical Connections in a Network


Reformat Department Table


Delete Characters to Make Fancy String


Minimum Moves to Reach Target Score


Longest Happy String


Number of Visible People in a Queue


Minimum Absolute Difference


Ugly Number III


Smallest String With Swaps


Sort Items by Groups Respecting Dependencies


Watering Plants


Largest Magic Square


Count Artifacts That Can Be Extracted


Count Ways to Build Rooms in an Ant Colony


Fizz Buzz Multithreaded


Monthly Transactions I


Tournament Winners


Unique Number of Occurrences


Remove All Adjacent Duplicates in String II


Get Equal Substrings Within Budget


Minimum Moves to Reach Target with Rotations


Where Will the Ball Fall


Path with Maximum Probability


Sum of Floored Pairs


Last Person to Fit in the Bus


Monthly Transactions II


Minimum Cost to Move Chips to The Same Position


Longest Arithmetic Subsequence of Given Difference


Path with Maximum Gold


Count Vowels Permutation


Sort the Jumbled Numbers


Sum of Numbers With Units Digit K


Maximum Candies Allocated to K Children


Maximum Product of the Length of Two Palindromic Substrings


Design Skiplist


Queries Quality and Percentage


Team Scores in Football Tournament


The Dining Philosophers


Split a String in Balanced Strings


Queens That Can Attack the King


Dice Roll Simulation


Maximum Equal Frequency


Perform String Shifts


Maximize the Topmost Element After K Moves


Distance to a Cycle in Undirected Graph


Maximum Score Of Spliced Array


Check If It Is a Straight Line


Remove Sub-Folders from the Filesystem


Replace the Substring for Balanced String


Maximum Profit in Job Scheduling


Find Resultant Array After Removing Anagrams


Find Players With Zero or One Losses


Minimum Deletions to Make Array Beautiful


Minimum Number of Moves to Make Palindrome


Report Contiguous Dates


Find Positive Integer Solution for a Given Equation


Circular Permutation in Binary Representation


Maximum Length of a Concatenated String with Unique Characters


Tiling a Rectangle with the Fewest Squares


Airplane Seat Assignment Probability


Greatest English Letter in Upper and Lower Case


Tuple with Same Product


First Unique Number


Maximum Height by Stacking Cuboids


Web Crawler Multithreaded


Minimum Swaps to Make Strings Equal


Count Number of Nice Subarrays


Minimum Remove to Make Valid Parentheses


Check If It Is a Good Array


Leftmost Column with at Least a One


Find Palindrome With Fixed Length


Selling Pieces of Wood


Number of Comments per Post


Cells with Odd Values in a Matrix


Reconstruct a 2-Row Binary Matrix


Number of Closed Islands


Maximum Score Words Formed by Letters


Calculate Amount Paid in Taxes


Number of Single Divisor Triplets


Maximum Font to Fit a Sentence in a Screen


Number of Ways to Build House of Cards


Shift 2D Grid


Find Elements in a Contaminated Binary Tree


Greatest Sum Divisible by Three


Minimum Moves to Move a Box to Their Target Location


Average Selling Price


Counting Elements


Find the Difference of Two Arrays


Maximum Value of K Coins From Piles


Minimum Path Cost in a Grid


Minimum Time Visiting All Points


Count Servers that Communicate


Search Suggestions System


Number of Ways to Stay in the Same Place After Some Steps


Page Recommendations


Find Winner on a Tic Tac Toe Game


Number of Burgers with No Waste of Ingredients


Count Square Submatrices with All Ones


Palindrome Partitioning III


Print Immutable Linked List in Reverse


All People Report to the Given Manager


Subtract the Product and Sum of Digits of an Integer


Group the People Given the Group Size They Belong To


Find the Smallest Divisor Given a Threshold


Minimum Number of Flips to Convert Binary Matrix to Zero Matrix


Traffic Light Controlled Intersection


Convert Binary Number in a Linked List to Integer


Maximum Side Length of a Square with Sum Less than or Equal to Threshold


Shortest Path in a Grid with Obstacles Elimination


Students and Examinations


Check if an Array Is Consecutive


Fair Distribution of Cookies


Make Array Non-decreasing or Non-increasing


Find the Start and End Number of Continuous Ranges


Find Numbers with Even Number of Digits


Divide Array in Sets of K Consecutive Numbers


Maximum Number of Occurrences of a Substring


Maximum Candies You Can Get from Boxes


Weather Type in Each Country


Find N Unique Integers Sum up to Zero


All Elements in Two Binary Search Trees


Jump Game III


Verbal Arithmetic Puzzle


Find the K-Beauty of a Number


All Ancestors of a Node in a Directed Acyclic Graph


Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree


Encrypt and Decrypt Strings


Decrypt String from Alphabet to Integer Mapping


XOR Queries of a Subarray


Get Watched Videos by Your Friends


Minimum Insertion Steps to Make a String Palindrome


Find the Team Size


Running Total for Different Genders


Convert Integer to the Sum of Two No-Zero Integers


Minimum Flips to Make a OR b Equal to c


Number of Operations to Make Network Connected


Minimum Distance to Type a Word Using Two Fingers


Number of Steps to Reduce a Number to Zero


Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold


Angle Between Hands of a Clock


Jump Game IV


Maximum 69 Number


Print Words Vertically


Delete Leaves With a Given Value


Minimum Number of Taps to Open to Water a Garden


Restaurant Growth


Ads Performance


Remove Palindromic Subsequences


Filter Restaurants by Vegan-Friendly, Price and Distance


Find the City With the Smallest Number of Neighbors at a Threshold Distance


Minimum Difficulty of a Job Schedule


Sort Integers by The Number of 1 Bits


Apply Discount Every n Orders


Number of Substrings Containing All Three Characters


Count All Valid Pickup and Delivery Options


List the Products Ordered in a Period


The K Weakest Rows in a Matrix


Reduce Array Size to The Half


Maximum Product of Splitted Binary Tree


Jump Game V


Number of Transactions per Visit


Check If N and Its Double Exist


Minimum Number of Steps to Make Two Strings Anagram


Tweet Counts Per Frequency


Maximum Students Taking Exam


Increasing Decreasing String


Find the Longest Substring Containing Vowels in Even Counts


Longest ZigZag Path in a Binary Tree


Maximum Sum BST in Binary Tree


Count Negative Numbers in a Sorted Matrix


Product of the Last K Numbers


Maximum Number of Events That Can Be Attended


Construct Target Array With Multiple Sums


Movie Rating


Students With Invalid Departments


How Many Numbers Are Smaller Than the Current Number


Rank Teams by Votes


Linked List in Binary Tree


Minimum Cost to Make at Least One Valid Path in a Grid


Find the Distance Value Between Two Arrays


Cinema Seat Allocation


Sort Integers by The Power Value


Pizza With 3n Slices


Generate a String With Characters That Have Odd Counts


Number of Times Binary String Is Prefix-Aligned


Time Needed to Inform All Employees


Frog Position After T Seconds


Activity Participants


Number of Trusted Contacts of a Customer


Lucky Numbers in a Matrix


Design a Stack With Increment Operation


Find a Corresponding Node of a Binary Tree in a Clone of That Tree


Maximum Performance of a Team


Count Largest Group


Circle and Rectangle Overlapping


Construct K Palindrome Strings


Reducing Dishes


Get the Second Most Recent Activity


Create Target Array in the Given Order


Check if There is a Valid Path in a Grid


Longest Happy Prefix


Replace Employee ID With The Unique Identifier


Find Lucky Integer in an Array


Count Number of Teams


Design Underground System


Find All Good Strings


Minimum Value to Get Positive Step by Step Sum


Find the Minimum Number of Fibonacci Numbers Whose Sum Is K


The k-th Lexicographical String of All Happy Strings of Length n


Restore The Array


Total Sales Amount by Year


Minimum Subsequence in Non-Increasing Order


Number of Steps to Reduce a Number in Binary Representation to One


Stone Game III


Capital Gain/Loss


String Matching in an Array


Queries on a Permutation With Key


HTML Entity Parser


Number of Ways to Paint N × 3 Grid


Kids With the Greatest Number of Candies


Max Difference You Can Get From Changing an Integer


Check If a String Can Break Another String


Number of Ways to Wear Different Hats to Each Other


Reformat The String


Display Table of Food Orders in a Restaurant


Minimum Number of Frogs Croaking


Build Array Where You Can Find The Maximum Exactly K Comparisons


Customers Who Bought Products A and B but Not C


Maximum Score After Splitting a String


Maximum Points You Can Obtain from Cards


Diagonal Traverse II


Top Travellers


Consecutive Characters


Simplified Fractions


Count Good Nodes in Binary Tree


Form Largest Integer With Digits That Add up to Target


Find the Quiet Students in All Exams


Destination City


Check If All 1's Are at Least Length K Places Away


Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit


Find the Kth Smallest Sum of a Matrix With Sorted Rows


NPV Queries


Build an Array With Stack Operations


Count Triplets That Can Form Two Arrays of Equal XOR


Minimum Time to Collect All Apples in a Tree


Number of Ways of Cutting a Pizza


Make Two Arrays Equal by Reversing Subarrays


Check If a String Contains All Binary Codes of Size K


Course Schedule IV


Cherry Pickup II


Number of Students Doing Homework at a Given Time


Rearrange Words in a Sentence


People Whose List of Favorite Companies Is Not a Subset of Another List


Maximum Number of Darts Inside of a Circular Dartboard


Create a Session Bar Chart


Evaluate Boolean Expression


Check If a Word Occurs As a Prefix of Any Word in a Sentence


Maximum Number of Vowels in a Substring of Given Length


Pseudo-Palindromic Paths in a Binary Tree


Max Dot Product of Two Subsequences


Final Prices With a Special Discount in a Shop


Allocate Mailboxes


Subrectangle Queries


Find Two Non-overlapping Sub-arrays Each With Target Sum


Maximum Product of Two Elements in an Array


Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts


Reorder Routes to Make All Paths Lead to the City Zero


Probability of a Two Boxes Having The Same Number of Distinct Balls


Apples & Oranges


Active Users


Shuffle the Array


The k Strongest Values in an Array


Design Browser History


Paint House III


Average Salary Excluding the Minimum and Maximum Salary


The kth Factor of n


Longest Subarray of 1's After Deleting One Element


Parallel Courses II


Running Sum of 1d Array


Least Number of Unique Integers after K Removals


Minimum Number of Days to Make m Bouquets


Rectangles Area


Calculate Salaries


Find All The Lonely Nodes


XOR Operation in an Array


Making File Names Unique


Avoid Flood in The City


Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree


Range Sum of Sorted Subarray Sums


Minimum Difference Between Largest and Smallest Value in Three Moves


Stone Game IV


Delete N Nodes After M Nodes of a Linked List


Path Crossing


Check If Array Pairs Are Divisible by k


Number of Subsequences That Satisfy the Given Sum Condition


Max Value of Equation


Sales by Day of the Week


Clone Binary Tree With Random Pointer


Group Sold Products By The Date


Can Make Arithmetic Progression From Sequence


Last Moment Before All Ants Fall Out of a Plank


Count Submatrices With All Ones


Minimum Possible Integer After at Most K Adjacent Swaps On Digits


Count Odd Numbers in an Interval Range


Number of Sub-arrays With Odd Sum


Number of Good Ways to Split a String


Minimum Number of Increments on Subarrays to Form a Target Array


Clone N-ary Tree


Number of Good Pairs


Number of Substrings With Only 1s


String Compression II


Best Position for a Service Centre


Friendly Movies Streamed Last Month


Design a File Sharing System


Countries You Can Safely Invest In


Water Bottles


Number of Nodes in the Sub-Tree With the Same Label


Maximum Number of Non-Overlapping Substrings


Find a Value of a Mysterious Function Closest to Target


Kth Missing Positive Number


Can Convert String in K Moves


Minimum Insertions to Balance a Parentheses String


Maximum Number of Non-Overlapping Subarrays With Sum Equals Target


Find Root of N-Ary Tree


Shuffle String


Minimum Suffix Flips


Number of Good Leaf Nodes Pairs


Customer Order Frequency


Move Sub-Tree of N-Ary Tree


Count Good Triplets


Find the Winner of an Array Game


Minimum Swaps to Arrange a Binary Grid


Get the Maximum Score


Thousand Separator


Minimum Number of Vertices to Reach All Nodes


Minimum Numbers of Function Calls to Make Target Array


Detect Cycles in 2D Grid


Find Users With Valid E-Mails


Diameter of N-Ary Tree


Make The String Great


Find Kth Bit in Nth Binary String


Find Longest Awesome Substring


Minimum Cost to Cut a Stick


Patients With a Condition


The Most Recent Three Orders


Find the Index of the Large Integer


Minimum Operations to Make Array Equal


Magnetic Force Between Two Balls


Minimum Number of Days to Eat N Oranges


Matrix Diagonal Sum


Number of Ways to Split a String


Shortest Subarray to be Removed to Make Array Sorted


Count All Possible Routes


Guess the Majority in a Hidden Array


Most Visited Sector in  a Circular Track


Maximum Number of Coins You Can Get


Find Latest Group of Size M


Stone Game V


Fix Product Name Format


The Most Similar Path in a Graph


The Most Recent Orders for Each Product


Detect Pattern of Length M Repeated K or More Times


Maximum Length of Subarray With Positive Product


Minimum Number of Days to Disconnect Island


Number of Ways to Reorder Array to Get Same BST


Sum of All Odd Length Subarrays


Make Sum Divisible by P


Maximum Sum Obtained of Any Permutation


Strange Printer II


Strings Differ by One Character


Replace All ?'s to Avoid Consecutive Repeating Characters


Number of Ways Where Square of Number Is Equal to Product of Two Numbers


Minimum Time to Make Rope Colorful


Remove Max Number of Edges to Keep Graph Fully Traversable


Bank Account Summary


Put Boxes Into the Warehouse I


Special Positions in a Binary Matrix


Count Unhappy Friends


Min Cost to Connect All Points


Check If String Is Transformable With Substring Sort Operations


Design Parking System


Alert Using Same Key-Card Three or More Times in a One Hour Period


Find Servers That Handled Most Number of Requests


Find Valid Matrix Given Row and Column Sums


Unique Orders and Customers Per Month


Dot Product of Two Sparse Vectors


Rearrange Spaces Between Words


Split a String Into the Max Number of Unique Substrings


Maximum Non Negative Product in a Matrix


Minimum Cost to Connect Two Groups of Points


Warehouse Manager


Put Boxes Into the Warehouse II


Crawler Log Folder


Maximum Profit of Operating a Centennial Wheel


Throne Inheritance


Maximum Number of Achievable Transfer Requests


Customer Who Visited but Did Not Make Any Transactions


Number of Sets of K Non-Overlapping Line Segments


Coordinate With Maximum Network Quality


Cat and Mouse II


Fancy Sequence


Binary Search Tree Iterator II


Special Array With X Elements Greater Than or Equal X


Even Odd Tree


Minimum One Bit Operations to Make Integers Zero


Maximum Number of Visible Points


Bank Account Summary II


The Most Frequently Ordered Products for Each Customer


Build Binary Expression Tree From Infix Expression


Maximum Nesting Depth of the Parentheses


Maximal Network Rank


Split Two Strings to Make Palindrome


Count Subtrees With Max Distance Between Cities


Sort Array by Increasing Frequency


Widest Vertical Area Between Two Points Containing No Points


Count Substrings That Differ by One Character


Number of Ways to Form a Target String Given a Dictionary


Find Nearest Right Node in Binary Tree


Largest Substring Between Two Equal Characters


Lexicographically Smallest String After Applying Operations


Best Team With No Conflicts


Sellers With No Sales


Check If Two Expression Trees are Equivalent


Slowest Key


Arithmetic Subarrays


Path With Minimum Effort


Defuse the Bomb


Minimum Deletions to Make String Balanced


Minimum Jumps to Reach Home


Distribute Repeating Integers


Find the Missing IDs


Check Array Formation Through Concatenation


Count Sorted Vowel Strings


Furthest Building You Can Reach


All Valid Triplets That Can Represent a Country


Maximum Repeating Substring


Merge In Between Linked Lists


Minimum Number of Removals to Make Mountain Array


Design Front Middle Back Queue


Design an Expression Tree With Evaluate Function


Get Maximum in Generated Array


Minimum Deletions to Make Character Frequencies Unique


Sell Diminishing-Valued Colored Balls


Create Sorted Array through Instructions


Percentage of Users Attended a Contest


Add Two Polynomials Represented as Linked Lists


Design an Ordered Stream


Minimum Operations to Reduce X to Zero


Determine if Two Strings Are Close


Maximize Grid Happiness


Hopper Company Queries I


Lowest Common Ancestor of a Binary Tree II


Check If Two String Arrays are Equivalent


Smallest String With A Given Numeric Value


Ways to Make a Fair Array


Minimum Initial Energy to Finish Tasks


Hopper Company Queries II


Count the Number of Consistent Strings


Sum of Absolute Differences in a Sorted Array


Stone Game VI


Delivering Boxes from Storage to Ports


Lowest Common Ancestor of a Binary Tree III


Richest Customer Wealth


Find the Most Competitive Subsequence


Minimum Moves to Make Array Complementary


Minimize Deviation in Array


Hopper Company Queries III


Correct a Binary Tree


Goal Parser Interpretation


Max Number of K-Sum Pairs


Minimum Incompatibility


Concatenation of Consecutive Binary Numbers


Average Time of Process per Machine


Number of Students Unable to Eat Lunch


Average Waiting Time


Maximum Binary String After Change


Minimum Adjacent Swaps for K Consecutive Ones


Count of Matches in Tournament


Partitioning Into Minimum Number Of Deci-Binary Numbers


Stone Game VII


Sum Of Special Evenly-Spaced Elements In Array


Change the Root of a Binary Tree


Fix Names in a Table


Reformat Phone Number


Maximum Erasure Value


Jump Game VI


Checking Existence of Edge Length Limited Paths


Lowest Common Ancestor of a Binary Tree IV


Calculate Money in Leetcode Bank


Maximum Score From Removing Substrings


Construct the Lexicographically Largest Valid Sequence


Number Of Ways To Reconstruct A Tree


Product's Worth Over Invoices


Longest Palindromic Subsequence II


Determine if String Halves Are Alike


Maximum Number of Eaten Apples


Find Minimum Time to Finish All Jobs


Maximum XOR With an Element From Array


Invalid Tweets


Count Ways to Distribute Candies


Maximum Units on a Truck


Count Good Meals


Ways to Split Array Into Three Subarrays


Minimum Operations to Make a Subsequence


Find the Highest Altitude


Minimum Number of People to Teach


Decode XORed Permutation


Count Ways to Make Array With Product


Daily Leads and Partners


Number of Distinct Substrings in a String


Decode XORed Array


Minimize Hamming Distance After Swap Operations


Number of Calls Between Two Persons


Number Of Rectangles That Can Form The Largest Square


Maximum Number of Balls in a Box


Largest Submatrix With Rearrangements


Largest Subarray Length K


Sum of Unique Elements


Maximum Absolute Sum of Any Subarray


Minimum Length of String After Deleting Similar Ends


Maximum Number of Events That Can Be Attended II


Biggest Window Between Visits


Latest Time by Replacing Hidden Digits


Change Minimum Characters to Satisfy One of Three Conditions


Find Kth Largest XOR Coordinate Value


Building Boxes


Count Apples and Oranges


Checking Existence of Edge Length Limited Paths II


Restore the Array From Adjacent Pairs


Palindrome Partitioning IV


Can You Eat Your Favorite Candy on Your Favorite Day?


Longest Nice Substring


Form Array by Concatenating Subarrays of Another Array


Tree of Coprimes


Map of Highest Peak


Find Followers Count


Check if Array Is Sorted and Rotated


Maximum Score From Removing Stones


Largest Merge Of Two Strings


Closest Subsequence Sum


The Number of Employees Which Report to Each Employee


Find Distance in a Binary Tree


Minimum Changes To Make Alternating Binary String


Count Number of Homogenous Substrings


Minimum Limit of Balls in a Bag


Minimum Degree of a Connected Trio in a Graph


Find Nearest Point That Has the Same X or Y Coordinate


Check if Number is a Sum of Powers of Three


Sum of Beauty of All Substrings


Count Pairs Of Nodes


Find Total Time Spent by Each Employee


Maximum Subarray Sum After One Operation


Merge Strings Alternately


Minimum Number of Operations to Move All Balls to Each Box


Maximum Score from Performing Multiplication Operations


Maximize Palindrome Length From Subsequences


Leetflex Banned Accounts


Count Items Matching a Rule


Closest Dessert Cost


Equal Sum Arrays With Minimum Number of Operations


Car Fleet II


Design Most Recently Used Queue


Second Largest Digit in a String


Design Authentication Manager


Maximize Score After N Operations


Count Pairs With XOR in a Range


Recyclable and Low Fat Products


Buildings With an Ocean View


Check if Binary String Has at Most One Segment of Ones


Minimum Elements to Add to Form a Given Sum


Number of Restricted Paths From First to Last Node


Make the XOR of All Segments Equal to Zero


Find the Subtasks That Did Not Execute


Check if One String Swap Can Make Strings Equal


Find Center of Star Graph


Maximum Average Pass Ratio


Maximum Score of a Good Subarray


Sort Features by Popularity


Determine Color of a Chessboard Square


Sentence Similarity III


Maximum Number of Groups Getting Fresh Donuts


Count Nice Pairs in an Array


Product's Price for Each Store


Maximum Ascending Subarray Sum


Number of Orders in the Backlog


Maximum Value at a Given Index in a Bounded Array


Maximum Number of Consecutive Values You Can Make


Shortest Path in a Hidden Grid


Grand Slam Titles


Number of Different Integers in a String


Evaluate the Bracket Pairs of a String


Minimum Number of Operations to Reinitialize a Permutation


Maximize Number of Nice Divisors


Maximize the Beauty of the Garden


Minimum Operations to Make the Array Increasing


Queries on Number of Points Inside a Circle


Maximum XOR for Each Query


Minimum Number of Operations to Make String Sorted


Primary Department for Each Employee


Count Pairs of Equal Substrings With Minimum Difference


Truncate Sentence


Finding the Users Active Minutes


Minimum Absolute Sum Difference


Number of Different Subsequences GCDs


Rearrange Products Table


Implement Trie II (Prefix Tree)


Sign of the Product of an Array


Find the Winner of the Circular Game


Minimum Sideway Jumps


Finding MK Average


Replace All Digits with Characters


Seat Reservation Manager


Maximum Element After Decreasing and Rearranging


Closest Room


Ad-Free Sessions


Minimum Path Cost in a Hidden Grid


Check if the Sentence Is Pangram


Maximum Ice Cream Bars


Single-Threaded CPU


Find XOR Sum of All Pairs Bitwise AND


Find Interview Candidates


Sum of Digits in Base K


Frequency of the Most Frequent Element


Longest Substring Of All Vowels in Order


Maximum Building Height


Maximum Number of Accepted Invitations


Sorting the Sentence


Incremental Memory Leak


Rotating the Box


Find Customers With Positive Revenue this Year


Minimum Distance to the Target Element


Splitting a String Into Descending Consecutive Values


Minimum Interval to Include Each Query


Minimum Adjacent Swaps to Reach the Kth Smallest Number


Maximum Number of People That Can Be Caught in Tag


Faulty Sensor


Maximum Transaction Each Day


Remove Duplicates From an Unsorted Linked List


Maximum Population Year


Maximum Distance Between a Pair of Values


Maximum Subarray Min-Product


Largest Color Value in a Directed Graph


Substrings of Size Three with Distinct Characters


Minimize Maximum Pair Sum in Array


Minimum XOR Sum of Two Arrays


Get Biggest Three Rhombus Sums in a Grid


League Statistics


Sort Linked List Already Sorted Using Absolute Values


Sum of All Subset XOR Totals


Minimum Number of Swaps to Make the Binary String Alternating


Finding Pairs With a Certain Sum


Number of Ways to Rearrange Sticks With K Sticks Visible


Next Palindrome Using Same Digits


Suspicious Bank Accounts


Longer Contiguous Segments of Ones than Zeros


Minimum Speed to Arrive on Time


Jump Game VII


Stone Game VIII


Distinct Numbers in Each Subarray


Convert Date Format


Check if All the Integers in a Range Are Covered


Find the Student that Will Replace the Chalk


Maximum Cost of Trip With K Highways


Minimum Cost to Change the Final Value of Expression


Longest Word With All Prefixes


Check if Word Equals Summation of Two Words


Maximum Value after Insertion


Process Tasks Using Servers


Minimum Skips to Arrive at Meeting On Time


Orders With Maximum Quantity Above Average


Determine Whether Matrix Can Be Obtained By Rotation


Reduction Operations to Make the Array Elements Equal


Minimum Number of Flips to Make the Binary String Alternating


Minimum Space Wasted From Packaging


Product of Two Run-Length Encoded Arrays


Remove One Element to Make the Array Strictly Increasing


Remove All Occurrences of a Substring


Maximum Alternating Subsequence Sum


Design Movie Rental System


Calculate Special Bonus


Redistribute Characters to Make All Strings Equal


Merge Triplets to Form Target Triplet


Maximum Number of Removable Characters


The Earliest and Latest Rounds Where Players Compete


Minimize Product Sum of Two Arrays


Group Employees of the Same Salary


Egg Drop With 2 Eggs and N Floors


Largest Odd Number in String


The Number of Full Rounds You Have Played


Minimum Absolute Difference Queries


Count Sub Islands


Count Pairs in Two Arrays


Count Square Sum Triples


Nearest Exit from Entrance in Maze


Sum Game


Minimum Cost to Reach Destination in Time


The Latest Login in 2020


Maximum Product Difference Between Two Pairs


Cyclically Rotating a Grid


Number of Wonderful Substrings


Cutting Ribbons


Page Recommendations II


Find a Peak Element II


Build Array from Permutation


Eliminate Maximum Number of Monsters


Count Good Numbers


Longest Common Subpath


Depth of BST Given Insertion Order


Check if All Characters Have Equal Number of Occurrences


The Number of the Smallest Unoccupied Chair


Describe the Painting


Jump Game VIII


Count Salary Categories


Concatenation of Array


Unique Length-3 Palindromic Subsequences


Merge BSTs to Create Single BST


Painting a Grid With Three Different Colors


Game of Nim


Leetcodify Friends Recommendations


Leetcodify Similar Friends


Check for Contradictions in Equations


Add Minimum Number of Rungs


Maximum Number of Points with Cost


Maximum Genetic Difference Query


Kth Smallest Subarray Sum


Check if String Is Decomposable Into Value-Equal Substrings


Longest Common Subsequence Between Sorted Arrays


Maximum of Minimum Values in All Subarrays


Minimum Time For K Virus Variants to Spread


Erect the Fence II


Brightest Position on Street


Sum of Digits of String After Convert


Largest Number After Mutating Substring


Maximum Compatibility Score Sum


Delete Duplicate Folders in System


Check if Move is Legal


Minimum Total Space Wasted With K Resizing Operations


Minimum Cost to Separate Sentence Into Rows


Three Divisors


Maximum Number of Weeks for Which You Can Work


Array With Elements Not Equal to Average of Neighbors


Count Number of Special Subsequences


Confirmation Rate


Minimum Time to Type Word Using Special Typewriter


Maximum Matrix Sum


Number of Ways to Arrive at Destination


Number of Ways to Separate Numbers


Users That Actively Request Confirmation Messages


Check If String Is a Prefix of Array


Remove Stones to Minimize the Total


Minimum Number of Swaps to Make the String Balanced


Find the Longest Valid Obstacle Course at Each Position


Strong Friendship


All the Pairs With the Maximum Number of Common Followers


Number of Strings That Appear as Substrings in Word


Minimum Non-Zero Product of the Array Elements


Last Day Where You Can Still Cross


Find the Middle Index in Array


Find All Groups of Farmland


Operations on Tree


The Number of Good Subsets


Find Greatest Common Divisor of Array


Find Unique Binary String


Minimize the Difference Between Target and Chosen Elements


Find Array Given Subset Sums


Employees With Missing Information


Binary Searchable Numbers in an Unsorted Array


Minimum Difference Between Highest and Lowest of K Scores


Find the Kth Largest Integer in the Array


Minimum Number of Work Sessions to Finish the Tasks


Number of Unique Good Subsequences


Count Number of Pairs With Absolute Difference K


Find Original Array From Doubled Array


Maximum Earnings From Taxi


Minimum Number of Operations to Make Array Continuous


First and Last Call On the Same Day


Find if Path Exists in Graph


Count Special Quadruplets


The Number of Weak Characters in the Game


First Day Where You Have Been in All the Rooms


GCD Sort of an Array


Count Nodes Equal to Sum of Descendants


Employees Whose Manager Left the Company


Reverse Prefix of Word


Number of Pairs of Interchangeable Rectangles


Maximum Product of the Length of Two Palindromic Subsequences


Smallest Missing Genetic Value in Each Subtree


Convert 1D Array Into 2D Array


Number of Pairs of Strings With Concatenation Equal to Target


Maximize the Confusion of an Exam


Maximum Number of Ways to Partition an Array


Find Cutoff Score for Each School


Final Value of Variable After Performing Operations


Sum of Beauty in the Array


Detect Squares


Longest Subsequence Repeated k Times


Smallest Greater Multiple Made of Two Digits


Average Height of Buildings in Each Segment


Count the Number of Experiments


Maximum Difference Between Increasing Elements


Grid Game


Check if Word Can Be Placed In Crossword


The Score of Students Solving Math Expression


Minimum Number of Moves to Seat Everyone


Remove Colored Pieces if Both Neighbors are the Same Color


Kth Smallest Product of Two Sorted Arrays


The Time When the Network Becomes Idle


The Number of Seniors and Juniors to Join the Company


Subtree Removal Game with Fibonacci Tree


Minimum Moves to Convert String


Find Missing Observations


Stone Game IX


Smallest K-Length Subsequence With Occurrences of a Letter


The Number of Seniors and Juniors to Join the Company II


Two Out of Three


Minimum Operations to Make a Uni-Value Grid


Stock Price Fluctuation


Partition Array Into Two Arrays to Minimize Sum Difference


Kth Distinct String in an Array


Two Best Non-Overlapping Events


Plates Between Candles


Number of Valid Move Combinations On Chessboard


Number of Accounts That Did Not Stream


Check if Numbers Are Ascending in a Sentence


Simple Bank System


Count Number of Maximum Bitwise-OR Subsets


Second Minimum Time to Reach Destination


Low-Quality Problems


Number of Valid Words in a Sentence


Next Greater Numerically Balanced Number


Count Nodes With the Highest Score


Parallel Courses III


Check Whether Two Strings are Almost Equivalent


Walking Robot Simulation II


Most Beautiful Item for Each Query


Maximum Number of Tasks You Can Assign


Smallest Index With Equal Value


Find the Minimum and Maximum Number of Nodes Between Critical Points


Minimum Operations to Convert Number


Check if an Original String Exists Given Two Encoded Strings


Accepted Candidates From the Interviews


Count Vowel Substrings of a String


Vowels of All Substrings


Minimized Maximum of Products Distributed to Any Store


Maximum Path Quality of a Graph


Count Common Words With One Occurrence


Minimum Number of Food Buckets to Feed the Hamsters


Minimum Cost Homecoming of a Robot in a Grid


Count Fertile Pyramids in a Land


The Category of Each Member in the Store


Time Needed to Buy Tickets


Reverse Nodes in Even Length Groups


Decode the Slanted Ciphertext


Process Restricted Friend Requests


Two Furthest Houses With Different Colors


Stamping the Grid


Valid Arrangement of Pairs


Sum of k-Mirror Numbers


Number of Spaces Cleaning Robot Cleaned


Find Subsequence of Length K With the Largest Sum


Find Good Days to Rob the Bank


Detonate the Maximum Bombs


Sequentially Ordinal Rank Tracker


Account Balance


Number of Equal Count Substrings


Find Target Indices After Sorting Array


K Radius Subarray Averages


Removing Minimum and Maximum From Array


Find All People With Secret


The Winner University


Finding 3-Digit Even Numbers


Delete the Middle Node of a Linked List


Step-By-Step Directions From a Binary Tree Node to Another


Paths in Maze That Lead to Same Room


Maximum Number of Words Found in Sentences


Find All Possible Recipes from Given Supplies


Check if a Parentheses String Can Be Valid


Abbreviating the Product of a Range


The Number of Rich Customers


Drop Type 1 Orders for Customers With Type 0 Orders


Substrings That Begin and End With the Same Letter


Rings and Rods


Sum of Subarray Ranges


Watering Plants II


Maximum Fruits Harvested After at Most K Steps


Minimum Cost to Reach City With Discounts


Find First Palindromic String in the Array


Adding Spaces to a String


Number of Smooth Descent Periods of a Stock


Minimum Operations to Make the Array K-Increasing


Capitalize the Title


Maximum Twin Sum of a Linked List


Longest Palindrome by Concatenating Two Letter Words


A Number After a Double Reversal


Execution of All Suffix Instructions Staying in a Grid


Intervals Between Identical Elements


Recover the Original Array


Subsequence of Size K With the Largest Even Sum


Check if All A's Appears Before All B's


Number of Laser Beams in a Bank


Destroying Asteroids


Maximum Employees to Be Invited to a Meeting


Number of Unique Flavors After Sharing K Candies


Minimum Cost of Buying Candies With Discount


Count the Hidden Sequences


K Highest Ranked Items Within a Price Range


Number of Ways to Divide a Long Corridor


The Airport With the Most Traffic


Build the Equation


Check if Every Row and Column Contains All Numbers


Minimum Swaps to Group All 1's Together II


Count Words Obtained After Adding a Letter


Earliest Possible Day of Full Bloom


Elements in Array After Removing and Replacing Elements


Minimum Operations to Remove Adjacent Ones in Matrix


Divide a String Into Groups of Size k


All Divisions With the Highest Score of a Binary Array


Solving Questions With Brainpower


Maximum Running Time of N Computers


Minimum Sum of Four Digit Number After Splitting Digits


Partition Array According to Given Pivot


Minimum Cost to Set Cooking Time


Minimum Difference in Sums After Removal of Elements


Remove All Ones With Row and Column Flips


Count Elements With Strictly Smaller and Greater Elements


Find All Lonely Numbers in the Array


Rearrange Array Elements by Sign


Maximum Good People Based on Statements


Pour Water Between Buckets to Make Water Levels Equal


Keep Multiplying Found Values by Two


Find Substring With Given Hash Value


Groups of Strings


Count Equal and Divisible Pairs in an Array


Find Three Consecutive Integers That Sum to a Given Number


Maximum Split of Positive Even Integers


Count Good Triplets in an Array


The Number of Passengers in Each Bus I


Choose Numbers From Two Arrays in Range


Sort Even and Odd Indices Independently


Smallest Value of the Rearranged Number


Design Bitset


Minimum Time to Remove All Cars Containing Illegal Goods


Minimum Number of Lines to Cover Points


Count Operations to Obtain Zero


Minimum Operations to Make the Array Alternating


Removing Minimum Number of Magic Beans


Maximum AND Sum of Array


Counting Words With a Given Prefix


Minimum Number of Steps to Make Two Strings Anagram II


Minimum Time to Complete Trips


Minimum Time to Finish the Race


The Number of Passengers in Each Bus II


Amount of New Area Painted Each Day


Count Integers With Even Digit Sum


Merge Nodes in Between Zeros


Construct String With Repeat Limit


Count Array Pairs Divisible by K


Order Two Columns Independently


Unique Substrings With Equal Digit Frequency


Cells in a Range on an Excel Sheet


Append K Integers With Minimal Sum


Create Binary Tree From Descriptions


Replace Non-Coprime Numbers in Array


Divide Array Into Equal Pairs


Maximize Number of Subsequences in a String


Minimum Operations to Halve Array Sum


Minimum White Tiles After Covering With Carpets


Most Frequent Number Following Key In an Array


Longest Winning Streak


Remove All Ones With Row and Column Flips II


The Change in Global Rankings


Count Hills and Valleys in an Array


Count Collisions on a Road


Maximum Points in an Archery Competition


Longest Substring of One Repeating Character


Find All K-Distant Indices in an Array


Minimum Weighted Subgraph With the Required Paths


Number of Ways to Build Sturdy Brick Wall


Minimum Bit Flips to Convert Number


Find Triangular Sum of an Array


Number of Ways to Select Buildings


Sum of Scores of Built Strings


Largest Number After Digit Swaps by Parity


Minimize Result by Adding Parentheses to Expression


Maximum Product After K Increments


Maximum Total Beauty of the Gardens


Intersection of Multiple Arrays


Count Lattice Points Inside a Circle


Count Number of Rectangles Containing Each Point


Number of Flowers in Full Bloom


Finding the Topic of Each Post


The Number of Users That Are Eligible for Discount


Remove Digit From Number to Maximize Result


Minimum Consecutive Cards to Pick Up


K Divisible Elements Subarrays


Total Appeal of A String


Count Prefixes of a Given String


Minimum Average Difference


Count Unguarded Cells in the Grid


Escape the Spreading Fire


Minimum Number of Operations to Convert Time


Largest 3-Same-Digit Number in String


Count Nodes Equal to Average of Subtree


Count Number of Texts


Check if There Is a Valid Parentheses String Path


Find Closest Number to Zero


Number of Ways to Buy Pens and Pencils


Design an ATM Machine


Maximum Score of a Node Sequence


Minimum Health to Beat Game


Maximum Consecutive Floors Without Special Floors


Largest Combination With Bitwise AND Greater Than Zero


Count Integers in Intervals


Number of Ways to Split Array


Maximum White Tiles Covered by a Carpet


Substring With Largest Variance


Calculate Digit Sum of a String


Minimum Rounds to Complete All Tasks


Maximum Trailing Zeros in a Cornered Path


Longest Path With Different Adjacent Characters


Percentage of Letter in String


Maximum Bags With Full Capacity of Rocks


Minimum Lines to Represent a Line Chart


Sum of Total Strength of Wizards


Maximum Sum Score of Array


Users With Two Purchases Within Seven Days


The Users That Are Eligible for Discount


Rearrange Characters to Make Target String


Apply Discount to Prices


Steps to Make Array Non-decreasing


Minimum Obstacle Removal to Reach Corner


Number of Times a Driver Was a Passenger


Check if Number Has Equal Digit Count and Digit Value


Sender With Largest Word Count


Maximum Total Importance of Roads


Booking Concert Tickets in Groups


Dynamic Pivoting of a Table


Dynamic Unpivoting of a Table


Add Two Integers


Root Equals Sum of Children


Count Positions on Street With Required Brightness


Min Max Game


Partition Array Such That Maximum Difference Is K


Replace Elements in an Array


Design a Text Editor


Naming a Company


Strong Password Checker II


Successful Pairs of Spells and Potions


Match Substring After Replacement


Count Subarrays With Score Less Than K


Longest Binary Subsequence Less Than or Equal to K


Design Video Sharing Platform


Count Number of Ways to Place Houses


Check if Matrix Is X-Matrix


Minimum Flips in Binary Tree to Get Result


Minimum Score After Removals on a Tree


Count Asterisks


Maximum XOR After Operations


Count Unreachable Pairs of Nodes in an Undirected Graph


Number of Distinct Roll Sequences


Minimum Number of Keypresses


Decode the Message


Number of People Aware of a Secret


Number of Increasing Paths in a Grid


Spiral Matrix IV


Minimum Amount of Time to Fill Cups


Smallest Number in Infinite Set


Move Pieces to Obtain a String


Count the Number of Ideal Arrays


Evaluate Boolean Binary Tree


The Latest Time to Catch a Bus


Minimum Sum of Squared Difference


Subarray With Elements Greater Than Varying Threshold


Closest Node to Path in Tree


Maximum Number of Pairs in Array


Query Kth Smallest Trimmed Number


Minimum Deletions to Make Array Divisible


Number of People That Can Be Seen in a Grid


Maximum Profit From Trading Stocks


First Letter to Appear Twice


Equal Row and Column Pairs


Design a Food Rating System


Number of Excellent Pairs


Products With Three or More Orders in Two Consecutive Years


Number of Zero-Filled Subarrays


Best Poker Hand


Design a Number Container System


Shortest Impossible Sequence of Rolls


Make Array Zero by Subtracting Equal Amounts


Maximum Number of Groups Entering a Competition


Find Closest Node to Given Two Nodes


Longest Cycle in a Graph


Tasks Count in the Weekend


Arrange Table by Gender


Number of Arithmetic Triplets


Check if There is a Valid Partition For The Array


Longest Ideal Subsequence


Reachable Nodes With Restrictions


The First Day of the Maximum Recorded Degree in Each City


Merge Similar Items


Count Number of Bad Pairs


Maximum Number of Robots Within Budget


Minimum Replacements to Sort the Array


Product Sales Analysis IV


Product Sales Analysis V


All the Matches of the League


Largest Local Values in a Matrix


Node With Highest Edge Score


Construct Smallest Number From DI String


Count Special Integers


Find Minimum Time to Finish All Jobs II


Minimum Hours of Training to Win a Competition


Amount of Time for Binary Tree to Be Infected


Find the K-Sum of an Array


Minimum Recolors to Get K Consecutive Black Blocks


Time Needed to Rearrange a Binary String


Shifting Letters II


Maximum Segment Sum After Removals


Valid Palindrome IV


Longest Subsequence With Limited Sum


Removing Stars From a String


Minimum Amount of Time to Collect Garbage


Build a Matrix With Conditions


Max Sum of a Pair With Equal Sum of Digits


Minimum Adjacent Swaps to Make a Valid Array


Largest Palindromic Number


Check Distances Between Same Letters


Number of Ways to Reach a Position After Exactly k Steps


Longest Nice Subarray


Meeting Rooms III


Find Subarrays With Equal Sum


Strictly Palindromic Number


Maximum Rows Covered by Columns


Task Scheduler II


Compute the Rank as a Percentage


Finding the Number of Visible Mountains


Most Frequent Even Element


Optimal Partition of String


Divide Intervals Into Minimum Number of Groups


Sort Array by Moving Items to Empty Space


Maximum Number of Books You Can Take


Smallest Even Multiple


Length of the Longest Alphabetical Continuous Substring


Reverse Odd Levels of Binary Tree


Sum of Prefix Scores of Strings


Number of Unique Subjects Taught by Each Teacher


Count Days Spent Together


Maximum Matching of Players With Trainers


Smallest Subarrays With Maximum Bitwise OR


Minimum Money Required Before Transactions


Minimum Costs Using the Train Line


Generate the Invoice


Sort the People


Longest Subarray With Maximum Bitwise AND


Find All Good Indices


Number of Good Paths


Minimize Maximum Value in a Grid


Number of Common Factors


Maximum Sum of an Hourglass


Minimize XOR


Maximum Deletions on a String


Partition String Into Substrings With Values at Most K


Longest Uploaded Prefix


Number of Pairs Satisfying Inequality


Calculate the Influence of Each Salesperson


Sort the Olympic Table


Choose Edges to Maximize Score in a Tree


The Employee That Worked on the Longest Task


Find The Original Array of Prefix Xor


Using a Robot to Print the Lexicographically Smallest String


Paths in Matrix Whose Sum Is Divisible by K


Median of a Row Wise Sorted Matrix


Change Null Values in a Table to the Previous Value


Largest Positive Integer That Exists With Its Negative


Count Number of Distinct Integers After Reverse Operations


Longest Increasing Subsequence II


Count Subarrays With Fixed Bounds


Number of Valid Clock Times


Range Product Queries of Powers


Minimize Maximum of Array


Create Components With Same Value


Remove Letter To Equalize Frequency


Bitwise XOR of All Pairings


Employees With Deductions


Count Strictly Increasing Subarrays


Determine if Two Events Have Conflict


Minimum Time to Kill All Monsters


Minimum Cost to Make Array Equal


Minimum Number of Operations to Make Arrays Similar


Color the Triangle Red


Sum of Number and Its Reverse


Average Value of Even Numbers That Are Divisible by Three


Most Popular Video Creator


Minimum Addition to Make Integer Beautiful


Height of Binary Tree After Subtree Removal Queries


Number of Subarrays With GCD Equal to K


Odd String Difference


Destroy Sequential Targets


Next Greater Element IV


Words Within Two Edits of Dictionary


Apply Operations to an Array


Maximum Sum of Distinct Subarrays With Length K


Total Cost to Hire K Workers


Minimum Total Distance Traveled


Design SQL


Convert the Temperature


Number of Subarrays With LCM Equal to K


Minimum Number of Operations to Sort a Binary Tree by Level


Maximum Number of Non-overlapping Palindrome Substrings


Closest Fair Integer


Number of Distinct Averages


Count Ways To Build Good Strings


Split Message Based on Limit


Most Profitable Path in a Tree


Merge Operations to Turn Array Into a Palindrome


Number of Unequal Triplets in Array


Closest Nodes Queries in a Binary Search Tree


Minimum Fuel Cost to Report to the Capital


Number of Beautiful Partitions


Maximize Total Tastiness of Purchased Fruits


Find the Pivot Integer


Append Characters to String to Make Subsequence


Remove Nodes From Linked List


Count Subarrays With Median K


Minimum Cuts to Divide a Circle


Minimum Penalty for a Shop


Count Palindromic Subsequences


Minimum Split Into Subarrays With GCD Greater Than One


Circular Sentence


Divide Players Into Teams of Equal Skill


Minimum Score of a Path Between Two Cities


Divide Nodes Into the Maximum Number of Groups


Number of Nodes With Value One


Delete Greatest Value in Each Row


Longest Square Streak in an Array


Design Memory Allocator


Maximum Number of Points From Grid Queries


Maximum Value of a String in an Array


Maximum Star Sum of a Graph


Frog Jump II


Minimum Total Cost to Make Arrays Unequal


Number of Distinct Binary Strings After Applying Operations


Count Pairs Of Similar Strings


Smallest Value After Replacing With Sum of Prime Factors


Add Edges to Make Degrees of All Nodes Even


Cycle Length Queries in a Tree


Shortest Distance to Target String in a Circular Array


Take K of Each Character From Left and Right


Maximum Tastiness of Candy Basket


Number of Great Partitions


Maximum Enemy Forts That Can Be Captured


Reward Top K Students


Minimum Operations to Make Array Equal II


Count Anagrams


Difference Between Ones and Zeros in Row and Column


Minimum Subarrays in a Valid Split


Count the Digits That Divide a Number


Distinct Prime Factors of Product of Array


Closest Prime Numbers in Range


Minimum Cost to Buy Apples


Customers With Strictly Increasing Purchases


Maximum Count of Positive Integer and Negative Integer


Make Number of Distinct Characters Equal


Maximal Score After Applying K Operations


Time Taken to Cross the Door


Maximize the Minimum Powered City


Categorize Box According to Criteria


Find Consecutive Integers from a Data Stream


Find Xor-Beauty of Array


Form a Chemical Bond


Maximum XOR of Two Non-Overlapping Subtrees


Difference Between Element Sum and Digit Sum of an Array


Increment Submatrices by One


Count the Number of Good Subarrays


Difference Between Maximum and Minimum Price Sum


Minimize the Maximum of Two Arrays


Number of Substrings With Fixed Ratio


Alternating Digit Sum


Sort the Students by Their Kth Score


Apply Bitwise Operations to Make Strings Equal


Minimum Cost to Split an Array


Minimum Common Value


Check if Point Is Reachable


Maximum Subsequence Score


Merge Overlapping Events in the Same Hall


Number of Subarrays Having Even Product


Separate the Digits in an Array


Maximum Number of Integers to Choose From a Range I


Disconnect Path in a Binary Matrix by at Most One Flip


Time to Cross a Bridge


Concatenate the Name and the Profession


Bitwise OR of All Subsequence Sums


Pass the Pillow


Kth Largest Sum in a Binary Tree


Split the Array to Make Coprime Products


Number of Ways to Earn Points


Count Total Number of Colored Cells


Split With Minimum Sum


Count Ways to Group Overlapping Ranges


Count Number of Possible Root Nodes


Check if There is a Path With Equal Number of 0's And 1's


Count the Number of Vowel Strings in Range


Rearrange Array to Maximize Prefix Score


Count the Number of Beautiful Subarrays


Minimum Time to Complete All Tasks


Count the Number of K-Big Indices


Number of Even and Odd Bits


Smallest Missing Non-negative Integer After Operations


Check Knight Tour Configuration


Distribute Money to Maximum Children


Maximize Greatness of an Array


Minimum Time to Repair Cars


Minimum Time to Eat All Grains


Maximum Frequency Score of a Subarray


Form Smallest Number From Two Digit Arrays


Find the Substring With Maximum Cost


Make K-Subarray Sums Equal


Shortest Cycle in a Graph


Number of Good Binary Strings


Maximize Win From Two Segments


Make the Prefix Sum Non-negative


Find the Width of Columns of a Grid


Find the Score of All Prefixes of an Array


Cousins in Binary Tree II


Design Graph With Shortest Path Calculator


Count Distinct Numbers on Board


Count Collisions of Monkeys on a Polygon


Put Marbles in Bags


Count Increasing Quadruplets


Count the Number of Good Subsequences


Determine the Winner of a Bowling Game


First Completely Painted Row or Column


Minimum Cost of a Path With Special Roads


Lexicographically Smallest Beautiful String


Design a Todo List


Rearranging Fruits


House Robber IV


Count Vowel Strings in Ranges


Take Gifts From the Richest Pile


Maximum Price to Fill a Bag


Find the Maximum Divisibility Score


Find Score of an Array After Marking All Elements


The Number of Beautiful Subsets


Minimum Number of Visited Cells in a Grid


Find the Array Concatenation Value


Count the Number of Fair Pairs


Substring XOR Queries


Subsequence With the Minimum Score


Maximum Number of Integers to Choose From a Range II


Handling Sum Queries After Update


Maximum Difference by Remapping a Digit


Minimum Impossible OR


Minimum Score by Changing Two Elements


Merge Two 2D Arrays by Summing Values


Find the String with LCP


Count the Number of Square-Free Subsets


Minimum Operations to Reduce an Integer to 0


Minimum Time to Visit a Cell In a Grid


Find the Maximum Number of Marked Indices


Find the Divisibility Array of a String


Left and Right Sum Differences


K Items With the Maximum Sum


Prime Subtraction Operation


Collect Coins in a Tree


Minimum Operations to Make All Array Elements Equal


Beautiful Pairs


Minimize the Maximum Difference of Pairs


Sum of Distances


Prime In Diagonal


Find the Longest Balanced Substring of a Binary String


Convert an Array Into a 2D Array With Conditions


Mice and Cheese


Minimum Reverse Operations


Number of Senior Citizens


Sum in a Matrix


Minimum Operations to Make Numbers Non-positive


Maximum OR


Memoize


Counter


Sleep


Array Prototype Last


JSON Deep Equal


Minimum Additions to Make Valid String


Row With Maximum Ones


Count the Number of K-Free Subsets


Minimize the Total Price of the Trips


Curry


Function Composition


Group By


Debounce


Memoize II


Convert Object to JSON String


Filter Elements from Array


Apply Transform Over Each Element in Array


Calculate Delayed Arrival Time


Promise Time Limit


Promise Pool


Sliding Subarray Beauty


Sum Multiples


Minimum Number of Operations to Make All Array Elements Equal to 1


Maximum Strength of a Group


Extra Characters in a String


Buy Two Chocolates


Count of Integers


Check if Object Instance of Class


Flatten Deeply Nested Array


Snail Traversal


Array Reduce Transformation


Cache With Time Limit


Maximum Number of Fish in a Grid


Make Array Empty


Find the Prefix Common Array of Two Arrays


Maximum Sum With Exactly K Elements


Array Upper Bound


Array of Objects to Matrix


Bind Function to Context


Throttle


Infinite Method Object


Immutability Helper


Differences Between Two Objects


Generate Fibonacci Sequence


Make Object Immutable


Find the Distinct Difference Array


Frequency Tracker


Number of Adjacent Elements With the Same Color


Make Costs of Paths Equal in a Binary Tree


Undefined to Null


Convert Callback Based Function to Promise Based Function


Nested Array Generator


Power of Heroes


Semi-Ordered Permutation


Find the Longest Semi-Repetitive Substring


Movement of Robots


Design Cancellable Function


Counter II


Call Function with Custom Context


Find the Losers of the Circular Game


Neighboring Bitwise XOR


Count the Number of Complete Components


Maximum Number of Moves in a Grid


Deep Merge of Two Objects


Allow One Function Call


Event Emitter


Chunk Array


Date Range Generator


Minimum String Length After Removing Substrings


Difference of Number of Distinct Values on Diagonals


Find the Punishment Number of an Integer


Modify Graph Edge Weights


Compact Object


Array Wrapper


Query Batching


Execute Asynchronous Functions in Parallel


Painting the Walls


Create Hello World Function


Collecting Chocolates


Determine the Minimum Sum of a k-avoiding Array


Find the Maximum Achievable Number


To Be Or Not To Be


Generate Circular Array Values


Find Maximal Uncovered Ranges


Lexicographically Smallest Palindrome


Minimum Cost to Make All Characters Equal


Maximum Strictly Increasing Cells in a Matrix


Remove Trailing Zeros From a String


Return Length of Arguments Passed


Timeout Cancellation


Next Day


The Knight’s Tour


Check if The Number is Fascinating


Minimize String Length


Find a Good Subset of the Matrix


Greatest Common Divisor Traversal


Lexicographically Smallest String After Substring Operation


Find Latest Salaries


Count Artist Occurrences On Spotify Ranking List


Number of Beautiful Pairs


Find the Longest Equal Subarray


Count Zero Request Servers


Relocate Marbles


Split a Circular Linked List


Neither Minimum nor Maximum


Minimum Operations to Make the Integer Zero


Sum of Matrix After Queries


Maximum Sum Queries


Immediate Food Delivery III


Bikes Last Time Used


Find Active Users


Extract Kth Character From The Rope Tree


Sum of Squares of Special Elements


Find the Value of the Partition


Robot Collisions


Find Maximum Number of String Pairs


Special Permutations


Sum of Imbalance Numbers of All Subarrays


Construct the Longest New String


Convert JSON String to Object


Customers with Maximum Number of Transactions on Consecutive Days


Consecutive Transactions with Increasing Amounts


Decremental String Concatenation


Maximum Number of Jumps to Reach the Last Index


Count Complete Subarrays in an Array


Total Distance Traveled


Join Two Arrays by ID


Add Two Promises


Sort By


Create Object from Two Arrays


Interval Cancellation


Calculator with Method Chaining


Is Object Empty


Find Shortest Path with K Hops


Longest Even Odd Subarray With Threshold


Ways to Split Array Into Good Subarrays


Continuous Subarrays


Longest Non-decreasing Subarray From Two Arrays


Longest Alternating Subarray


Double a Number Represented as a Linked List


Largest Element in an Array after Merge Operations


Prime Pairs With Target Sum


Popularity Percentage


Count Houses in a Circular Street


Number of Employees Who Met the Target


Shortest String That Contains Three Strings


Apply Operations to Make All Array Elements Equal to Zero


Minimum Changes to Make K Semi-palindromes


Find the Closest Marked Node


Split Strings by Separator


Ways to Express an Integer as Sum of Powers


Partition String Into Minimum Beautiful Substrings


Length of the Longest Valid Substring


Count Occurrences in Text


Faulty Keyboard


Sort Vowels in a String


Minimum Index of a Valid Split


Number of Black Blocks


Count Substrings Without Repeating Character


Maximum Beauty of an Array After Applying Operation


Check if Array is Good


Visit Array Positions to Maximize Score


Maximum Elegance of a K-Length Subsequence


Count Houses in a Circular Street II


Parallel Execution of Promises for Individual Results Retrieval


Repeat String


Partial Function with Placeholders


Factorial Generator


Max Pair Sum in an Array


Insert Greatest Common Divisors in Linked List


Sorting Three Groups


Count Paths That Can Form a Palindrome in a Tree


Array Prototype ForEach


Custom Interval


Delay the Resolution of Each Promise


Deep Object Filter


Find the Safest Path in a Grid


Count of Interesting Subarrays


Check if it is Possible to Split Array


Count Pairs Whose Sum is Less than Target


Is Array a Preorder of Some Binary Tree


Maximum Number of Groups With Increasing Length


Minimum Seconds to Equalize a Circular Array


Count Stepping Numbers in Range


Inversion of Object


Height of Special Binary Tree


Minimum Time to Make Array Sum At Most x


Count Pairs of Points With Distance k


Maximum Sum of Almost Unique Subarray


Account Balance After Rounded Purchase


Check if a String Is an Acronym of Words


Check if Strings Can be Made Equal With Operations II


Maximize the Profit as the Salesman


Number of Unique Categories


Count Symmetric Integers


Check if Strings Can be Made Equal With Operations I


Minimum Absolute Difference Between Elements With Constraint


Apply Operations to Maximize Score


Flight Occupancy and Waitlist Analysis


Status of Flight Tickets


Count Nodes That Are Great Enough


Number of Beautiful Integers in the Range


Make String a Subsequence Using Cyclic Increments


Furthest Point From Origin


String Transformation


Minimum Operations to Form Subsequence With Target Sum


Find the Minimum Possible Sum of a Beautiful Array


Find The K-th Lucky Number


Construct Product Matrix


Maximize Value of Function in a Ball Passing Game


Apply Operations to Make Two Strings Equal


Points That Intersect With Cars


Minimum Time Takes to Reach Destination Without Drowning


Minimum Operations to Collect Elements


Minimum Right Shifts to Sort the Array


Minimum Operations to Make a Special Number


Maximum Element-Sum of a Complete Subset of Indices


Maximum Odd Binary Number


Determine if a Cell Is Reachable at a Given Time


Count K-Subsequences of a String With Maximum Beauty


Maximum Number of K-Divisible Components


Create a DataFrame from List


Method Chaining


Reshape Data: Concatenate


Display the First Three Rows


Create a New Column


Modify Columns


Rename Columns


Change Data Type


Fill Missing Data


Drop Duplicate Rows


Reshape Data: Pivot


Reshape Data: Melt


Select Data


Drop Missing Data


Get the Size of a DataFrame


Minimum Relative Loss After Buying Chocolates


Election Results


Minimum Edge Weight Equilibrium Queries in a Tree


Split Array Into Maximum Number of Subarrays


Minimum Array Length After Pair Removals


Maximal Range That Each Element Is Maximum in It


Count of Sub-Multisets With Bounded Sum


Minimum Moves to Spread Stones Over Grid


Sum of Values at Indices With K Set Bits


Minimum Number of Operations to Make Array Empty


Maximum Number of Alloys


Total Traveled Distance


Maximum Coins Heroes Can Collect


Happy Students


Minimum Edge Reversals So Every Node Is Reachable


Length of the Longest Subsequence That Sums to Target


Maximum Spending After Buying Items


Smallest Number With Given Digit Product


Count Valid Paths in a Tree


Beautiful Towers II


Beautiful Towers I


Subarrays Distinct Element Sum of Squares II


Count Visited Nodes in a Directed Graph


Minimum Size Subarray in Infinite Array


Longest Unequal Adjacent Groups Subsequence II


Longest Unequal Adjacent Groups Subsequence I


Sum of Remoteness of All Cells


Shortest and Lexicographically Smallest Beautiful String


Minimum Processing Time


Maximum Value of an Ordered Triplet II


Apply Operations on Array to Maximize Sum of Squares


Maximum Value of an Ordered Triplet I


Highest Salaries Difference


Rolling Average Steps


Maximum Length of Semi-Decreasing Subarrays


Calculate Orders Within Each Interval


Subarrays Distinct Element Sum of Squares I


Last Visited Integers


Find Indices With Index and Value Difference I


Minimum Number of Groups to Create a Valid Assignment


Find Indices With Index and Value Difference II


Minimum Equal Sum of Two Arrays After Replacing Zeros


Divisible and Non-divisible Sums Difference


The Wording Game


Minimum Number of Changes to Make Binary String Beautiful


Minimum Sum of Mountain Triplets I


Minimizing Array After Replacing Pairs With Their Product


Minimum Increment Operations to Make Array Beautiful


Maximum Points After Collecting Coins From All Nodes


Find Building Where Alice and Bob Can Meet


Maximum Linear Stock Score


Find the K-or of an Array


Maximum Balanced Subsequence Sum


Minimum Sum of Mountain Triplets II


Maximum Profitable Triplets With Increasing Prices I


Find Champion I


Find Champion II


Minimum Operations to Maximize Last Elements in Arrays


Maximum Score After Applying Operations on a Tree


Maximum Xor Product


Maximum Strong Pair XOR I


Find Words Containing Character


Separate Black and White Balls


Apply Operations to Maximize Frequency Score


Maximum Strong Pair XOR II


Number of Ways to Reach Destination in the Grid


Distribute Candies Among Children I


Number of Strings Which Can Be Rearranged to Contain Substring


Distribute Candies Among Children II


High-Access Employees


Palindrome Rearrangement Queries


Maximum Profitable Triplets With Increasing Prices II


Market Analysis III


Find Common Elements Between Two Arrays


Make Three Strings Equal


Count Beautiful Substrings II


Minimum Number of Coins for Fruits


Count Beautiful Substrings I


Find Maximum Non-decreasing Array Length


Count the Number of Good Partitions


Count Subarrays Where Max Element Appears at Least K Times


Maximize Area of Square Hole in Grid


Matrix Similarity After Cyclic Shifts


Distribute Candies Among Children III


Number of Possible Sets of Closing Branches


Find Number of Coins to Place in Tree Nodes


Make Lexicographically Smallest Array by Swapping Elements


Count Tested Devices After Test Operations


Find the Peaks


Number of Equal Numbers Blocks


Count Complete Substrings


Count the Number of Infection Sequences


Length of Longest Subarray With at Most K Frequency


Minimum Number Game


Find Missing and Repeated Values


Maximum Size of a Set After Removals


Minimum Cost to Make Array Equalindromic


Remove Adjacent Almost-Equal Characters


Minimum Number of Coins to be Added


Maximum GCD-Sum of a Subarray


Maximize the Number of Partitions After Operations


Double Modular Exponentiation


Minimum Cost to Convert String I


Smallest Missing Integer Greater Than Sequential Prefix Sum


Number of Divisible Substrings


Minimum Cost to Convert String II


Minimum Number of Operations to Make X and Y Equal


Maximum Number That Sum of the Prices Is Less Than or Equal to K


Divide Array Into Arrays With Max Difference


Count Elements With Maximum Frequency


Count the Number of Powerful Integers


Minimize Length of Array Using Operations


Find Beautiful Indices in the Given Array I


Check if Bitwise OR Has Trailing Zeros


Number of Same-End Substrings


Count the Number of Incremovable Subarrays II


Minimum Number of Operations to Make Array XOR Equal to K


Maximum Square Area by Removing Fences From a Field


Maximum Area of Longest Diagonal Rectangle


Count the Number of Incremovable Subarrays I


Symmetric Coordinates


Number of Divisible Triplet Sums


Pizza Toppings Cost Analysis


Find Candidates for Data Scientist Position


Maximize Items


Classifying Triangles by Lengths


Binary Tree Nodes


Divide an Array Into Subarrays With Minimum Cost II


Minimize OR of Remaining Elements Using Operations


Find Polygon With the Largest Perimeter


Divide an Array Into Subarrays With Minimum Cost I


Maximum Points After Enemy Battles


Maximum Good Subarray Sum


Find Longest Special Substring That Occurs Thrice II


Find Longest Special Substring That Occurs Thrice I


Minimum Number of Coins for Fruits II


Number of Subarrays That Match a Pattern I


Minimum Moves to Capture The Queen


Count the Number of Houses at a Certain Distance I


Find the Grid of Region Average


Most Expensive Item That Can Not Be Bought


Minimum Number of Pushes to Type Word I


Minimum Number of Pushes to Type Word II


Find the Number of Ways to Place People II


Find the Number of Ways to Place People I


Alice and Bob Playing Flower Game


Find Peak Calling Hours for Each City


Calculate Compressed Mean


Find Third Transaction


Find Expensive Cities


Manager of the Largest Department


Class Performance


Loan Types


Top Three Wineries


Earliest Second to Mark Indices II


Number of Subarrays That Match a Pattern II


Find if Array Can Be Sorted


Earliest Second to Mark Indices I


Number of Self-Divisible Permutations


Minimum Time to Revert Word to Initial State II


Minimum Time to Revert Word to Initial State I


Maximize Consecutive Elements in an Array After Modification


Find the Maximum Number of Elements in Subset


Friday Purchases I


Friday Purchases II


Viewers Turned Streamers