Array | LeetCode Problems

776 Array solutions to LeetCode solutions.

Array Problems View all solutions →

Two Sum

#1 Easy

Median of Two Sorted Arrays

#4 Hard

Container With Most Water

#11 Medium

3Sum

#15 Medium

3Sum Closest

#16 Medium

4Sum

#18 Medium

Remove Duplicates from Sorted Array

#26 Easy

Remove Element

#27 Easy

Next Permutation

#31 Medium

Search in Rotated Sorted Array

#33 Medium

Find First and Last Position of Element in Sorted Array

#34 Medium

Search Insert Position

#35 Easy

Valid Sudoku

#36 Medium

Sudoku Solver

#37 Hard

Combination Sum

#39 Medium

Combination Sum II

#40 Medium

First Missing Positive

#41 Hard

Trapping Rain Water

#42 Hard

Jump Game II

#45 Medium

Permutations

#46 Medium

Permutations II

#47 Medium

Rotate Image

#48 Medium

Group Anagrams

#49 Medium

N-Queens

#51 Hard

Maximum Subarray

#53 Easy

Spiral Matrix

#54 Medium

Jump Game

#55 Medium

Merge Intervals

#56 Medium

Insert Interval

#57 Medium

Spiral Matrix II

#59 Medium

Unique Paths II

#63 Medium

Minimum Path Sum

#64 Medium

Plus One

#66 Easy

Text Justification

#68 Hard

Set Matrix Zeroes

#73 Medium

Search a 2D Matrix

#74 Medium

Sort Colors

#75 Medium

Subsets

#78 Medium

Word Search

#79 Medium

Remove Duplicates from Sorted Array II

#80 Medium

Search in Rotated Sorted Array II

#81 Medium

Largest Rectangle in Histogram

#84 Hard

Maximal Rectangle

#85 Hard

Merge Sorted Array

#88 Easy

Subsets II

#90 Medium

Construct Binary Tree from Preorder and Inorder Traversal

#105 Medium

Construct Binary Tree from Inorder and Postorder Traversal

#106 Medium

Convert Sorted Array to Binary Search Tree

#108 Easy

Pascal's Triangle

#118 Easy

Pascal's Triangle II

#119 Easy

Triangle

#120 Medium

Best Time to Buy and Sell Stock

#121 Easy

Best Time to Buy and Sell Stock II

#122 Medium

Best Time to Buy and Sell Stock III

#123 Hard

Longest Consecutive Sequence

#128 Medium

Surrounded Regions

#130 Medium

Gas Station

#134 Medium

Candy

#135 Hard

Single Number

#136 Easy

Single Number II

#137 Medium

Word Break

#139 Medium

Word Break II

#140 Hard

Max Points on a Line

#149 Hard

Evaluate Reverse Polish Notation

#150 Medium

Maximum Product Subarray

#152 Medium

Find Minimum in Rotated Sorted Array

#153 Medium

Find Minimum in Rotated Sorted Array II

#154 Hard

Find Peak Element

#162 Medium

Maximum Gap

#164 Medium

Two Sum II - Input Array Is Sorted

#167 Easy

Majority Element

#169 Easy

Dungeon Game

#174 Hard

Largest Number

#179 Medium

Best Time to Buy and Sell Stock IV

#188 Hard

Rotate Array

#189 Medium

House Robber

#198 Medium

Number of Islands

#200 Medium

Count Primes

#204 Medium

Minimum Size Subarray Sum

#209 Medium

Word Search II

#212 Hard

House Robber II

#213 Medium

Kth Largest Element in an Array

#215 Medium

Combination Sum III

#216 Medium

Contains Duplicate

#217 Easy

The Skyline Problem

#218 Hard

Contains Duplicate II

#219 Easy

Contains Duplicate III

#220 Hard

Maximal Square

#221 Medium

Summary Ranges

#228 Easy

Majority Element II

#229 Medium

Product of Array Except Self

#238 Medium

Sliding Window Maximum

#239 Hard

Search a 2D Matrix II

#240 Medium

Single Number III

#260 Medium

Missing Number

#268 Easy

H-Index

#274 Medium

H-Index II

#275 Medium

Move Zeroes

#283 Easy

Peeking Iterator

#284 Medium

Find the Duplicate Number

#287 Medium

Game of Life

#289 Medium

Longest Increasing Subsequence

#300 Medium

Range Sum Query - Immutable

#303 Easy

Range Sum Query 2D - Immutable

#304 Medium

Range Sum Query - Mutable

#307 Medium

Best Time to Buy and Sell Stock with Cooldown

#309 Medium

Burst Balloons

#312 Hard

Super Ugly Number

#313 Medium

Count of Smaller Numbers After Self

#315 Hard

Maximum Product of Word Lengths

#318 Medium

Create Maximum Number

#321 Hard

Coin Change

#322 Medium

Wiggle Sort II

#324 Medium

Count of Range Sum

#327 Hard

Longest Increasing Path in a Matrix

#329 Hard

Patching Array

#330 Hard

Increasing Triplet Subsequence

#334 Medium

Self Crossing

#335 Hard

Palindrome Pairs

#336 Hard

Top K Frequent Elements

#347 Medium

Intersection of Two Arrays

#349 Easy

Intersection of Two Arrays II

#350 Easy

Russian Doll Envelopes

#354 Hard

Max Sum of Rectangle No Larger Than K

#363 Hard

Largest Divisible Subset

#368 Medium

Find K Pairs with Smallest Sums

#373 Medium

Wiggle Subsequence

#376 Medium

Combination Sum IV

#377 Medium

Kth Smallest Element in a Sorted Matrix

#378 Medium

Insert Delete GetRandom O(1)

#380 Medium

Insert Delete GetRandom O(1) - Duplicates allowed

#381 Hard

Shuffle an Array

#384 Medium

Perfect Rectangle

#391 Hard

UTF-8 Validation

#393 Medium

Rotate Function

#396 Medium

Evaluate Division

#399 Medium

Frog Jump

#403 Hard

Queue Reconstruction by Height

#406 Medium

Trapping Rain Water II

#407 Hard

Split Array Largest Sum

#410 Hard

Arithmetic Slices

#413 Medium

Third Maximum Number

#414 Easy

Partition Equal Subset Sum

#416 Medium

Pacific Atlantic Water Flow

#417 Medium

Battleships in a Board

#419 Medium

Maximum XOR of Two Numbers in an Array

#421 Medium

Construct Quad Tree

#427 Medium

Non-overlapping Intervals

#435 Medium

Find Right Interval

#436 Medium

Find All Duplicates in an Array

#442 Medium

Arithmetic Slices II - Subsequence

#446 Hard

Number of Boomerangs

#447 Medium

Find All Numbers Disappeared in an Array

#448 Easy

Minimum Number of Arrows to Burst Balloons

#452 Medium

Minimum Moves to Equal Array Elements

#453 Medium

4Sum II

#454 Medium

Assign Cookies

#455 Easy

132 Pattern

#456 Medium

Circular Array Loop

#457 Medium

Minimum Moves to Equal Array Elements II

#462 Medium

Island Perimeter

#463 Medium

Concatenated Words

#472 Hard

Matchsticks to Square

#473 Medium

Ones and Zeroes

#474 Medium

Heaters

#475 Medium

Total Hamming Distance

#477 Medium

Sliding Window Median

#480 Hard

Max Consecutive Ones

#485 Easy

Predict the Winner

#486 Medium

Non-decreasing Subsequences

#491 Medium

Reverse Pairs

#493 Hard

Target Sum

#494 Medium

Teemo Attacking

#495 Easy

Next Greater Element I

#496 Easy

Random Point in Non-overlapping Rectangles

#497 Medium

Diagonal Traverse

#498 Medium

Keyboard Row

#500 Easy

IPO

#502 Hard

Next Greater Element II

#503 Medium

Relative Ranks

#506 Easy

Super Washing Machines

#517 Hard

Coin Change II

#518 Medium

Longest Uncommon Subsequence II

#522 Medium

Continuous Subarray Sum

#523 Medium

Longest Word in Dictionary through Deleting

#524 Medium

Contiguous Array

#525 Medium

Beautiful Arrangement

#526 Medium

Random Pick with Weight

#528 Medium

Minesweeper

#529 Medium

K-diff Pairs in an Array

#532 Medium

Minimum Time Difference

#539 Medium

Single Element in a Sorted Array

#540 Medium

01 Matrix

#542 Medium

Remove Boxes

#546 Hard

Optimal Division

#553 Medium

Brick Wall

#554 Medium

Subarray Sum Equals K

#560 Medium

Array Partition

#561 Easy

Array Nesting

#565 Medium

Reshape the Matrix

#566 Easy

Distribute Candies

#575 Easy

Shortest Unsorted Continuous Subarray

#581 Medium

Erect the Fence

#587 Hard

Longest Harmonious Subsequence

#594 Easy

Range Addition II

#598 Easy

Minimum Index Sum of Two Lists

#599 Easy

Can Place Flowers

#605 Easy

Find Duplicate File in System

#609 Medium

Valid Triangle Number

#611 Medium

Task Scheduler

#621 Medium

Design Circular Queue

#622 Medium

Maximum Distance in Arrays

#624 Medium

Maximum Product of Three Numbers

#628 Easy

Course Schedule III

#630 Hard

Smallest Range Covering Elements from K Lists

#632 Hard

Exclusive Time of Functions

#636 Medium

Shopping Offers

#638 Medium

Design Circular Deque

#641 Medium

Maximum Average Subarray I

#643 Easy

Set Mismatch

#645 Medium

Maximum Length of Pair Chain

#646 Medium

Replace Words

#648 Medium

Maximum Binary Tree

#654 Medium

Find K Closest Elements

#658 Medium

Split Array into Consecutive Subsequences

#659 Medium

Image Smoother

#661 Easy

Non-decreasing Array

#665 Medium

Beautiful Arrangement II

#667 Medium

Number of Longest Increasing Subsequence

#673 Medium

Longest Continuous Increasing Subsequence

#674 Easy

Cut Off Trees for Golf Event

#675 Hard

24 Game

#679 Hard

Baseball Game

#682 Easy

Maximum Sum of 3 Non-Overlapping Subarrays

#689 Hard

Employee Importance

#690 Medium

Stickers to Spell Word

#691 Hard

Top K Frequent Words

#692 Medium

Max Area of Island

#695 Medium

Degree of an Array

#697 Easy

Partition to K Equal Sum Subsets

#698 Medium

Falling Squares

#699 Hard

Binary Search

#704 Easy

Design HashSet

#705 Easy

Design HashMap

#706 Easy

Random Pick with Blacklist

#710 Hard

Subarray Product Less Than K

#713 Medium

Best Time to Buy and Sell Stock with Transaction Fee

#714 Medium

1-bit and 2-bit Characters

#717 Easy

Maximum Length of Repeated Subarray

#718 Medium

Find K-th Smallest Pair Distance

#719 Hard

Longest Word in Dictionary

#720 Medium

Accounts Merge

#721 Medium

Remove Comments

#722 Medium

Find Pivot Index

#724 Easy

My Calendar I

#729 Medium

My Calendar II

#731 Medium

Flood Fill

#733 Easy

Asteroid Collision

#735 Medium

Daily Temperatures

#739 Medium

Delete and Earn

#740 Medium

Cherry Pickup

#741 Hard

Find Smallest Letter Greater Than Target

#744 Easy

Prefix and Suffix Search

#745 Hard

Min Cost Climbing Stairs

#746 Easy

Largest Number At Least Twice of Others

#747 Easy

Shortest Completing Word

#748 Easy

Contain Virus

#749 Hard

Open the Lock

#752 Medium

Set Intersection Size At Least Two

#757 Hard

Largest Plus Sign

#764 Medium

Toeplitz Matrix

#766 Easy

Max Chunks To Make Sorted II

#768 Hard

Max Chunks To Make Sorted

#769 Medium

Sliding Puzzle

#773 Hard

Global and Local Inversions

#775 Medium

Swim in Rising Water

#778 Hard

Rabbits in Forest

#781 Medium

Transform to Chessboard

#782 Hard

K-th Smallest Prime Fraction

#786 Medium

Escape The Ghosts

#789 Medium

Number of Matching Subsequences

#792 Medium

Valid Tic-Tac-Toe State

#794 Medium

Number of Subarrays with Bounded Maximum

#795 Medium

Smallest Rotation with Highest Score

#798 Hard

Minimum Swaps To Make Sequences Increasing

#801 Hard

Bricks Falling When Hit

#803 Hard

Unique Morse Code Words

#804 Easy

Split Array With Same Average

#805 Hard

Number of Lines To Write String

#806 Easy

Max Increase to Keep City Skyline

#807 Medium

Expressive Words

#809 Medium

Chalkboard XOR Game

#810 Hard

Subdomain Visit Count

#811 Medium

Largest Triangle Area

#812 Easy

Largest Sum of Averages

#813 Medium

Bus Routes

#815 Hard

Linked List Components

#817 Medium

Most Common Word

#819 Easy

Short Encoding of Words

#820 Medium

Shortest Distance to a Character

#821 Easy

Card Flipping Game

#822 Medium

Binary Trees With Factors

#823 Medium

Friends Of Appropriate Ages

#825 Medium

Most Profit Assigning Work

#826 Medium

Making A Large Island

#827 Hard

Flipping an Image

#832 Easy

Find And Replace in String

#833 Medium

Image Overlap

#835 Medium

Similar String Groups

#839 Hard

Magic Squares In Grid

#840 Medium

Guess the Word

#843 Hard

Longest Mountain in Array

#845 Medium

Hand of Straights

#846 Medium

Shifting Letters

#848 Medium

Maximize Distance to Closest Person

#849 Medium

Rectangle Area II

#850 Hard

Loud and Rich

#851 Medium

Peak Index in a Mountain Array

#852 Medium

Car Fleet

#853 Medium

Minimum Cost to Hire K Workers

#857 Hard

Lemonade Change

#860 Easy

Score After Flipping Matrix

#861 Medium

Shortest Subarray with Sum at Least K

#862 Hard

Shortest Path to Get All Keys

#864 Hard

Transpose Matrix

#867 Easy

Advantage Shuffle

#870 Medium

Minimum Number of Refueling Stops

#871 Hard

Length of Longest Fibonacci Subsequence

#873 Medium

Walking Robot Simulation

#874 Medium

Koko Eating Bananas

#875 Medium

Stone Game

#877 Medium

Profitable Schemes

#879 Hard

Boats to Save People

#881 Medium

Projection Area of 3D Shapes

#883 Easy

Spiral Matrix III

#885 Medium

Fair Candy Swap

#888 Easy

Construct Binary Tree from Preorder and Postorder Traversal

#889 Medium

Find and Replace Pattern

#890 Medium

Sum of Subsequence Widths

#891 Hard

Surface Area of 3D Shapes

#892 Easy

Groups of Special-Equivalent Strings

#893 Medium

Monotonic Array

#896 Easy

Bitwise ORs of Subarrays

#898 Medium

RLE Iterator

#900 Medium

Numbers At Most N Given Digit Set

#902 Hard

Fruit Into Baskets

#904 Medium

Sort Array By Parity

#905 Easy

Sum of Subarray Minimums

#907 Medium

Smallest Range I

#908 Easy

Snakes and Ladders

#909 Medium

Smallest Range II

#910 Medium

Online Election

#911 Medium

Sort an Array

#912 Medium

X of a Kind in a Deck of Cards

#914 Medium

Partition Array into Disjoint Intervals

#915 Medium

Word Subsets

#916 Medium

Maximum Sum Circular Subarray

#918 Medium

Sort Array By Parity II

#922 Easy

3Sum With Multiplicity

#923 Medium

Minimize Malware Spread

#924 Hard

Three Equal Parts

#927 Hard

Minimize Malware Spread II

#928 Hard

Unique Email Addresses

#929 Easy

Binary Subarrays With Sum

#930 Medium

Minimum Falling Path Sum

#931 Medium

Beautiful Array

#932 Medium

Shortest Bridge

#934 Medium

Reorder Data in Log Files

#937 Medium

Minimum Area Rectangle

#939 Medium

Valid Mountain Array

#941 Easy

DI String Match

#942 Easy

Find the Shortest Superstring

#943 Hard

Delete Columns to Make Sorted

#944 Easy

Minimum Increment to Make Array Unique

#945 Medium

Validate Stack Sequences

#946 Medium

Bag of Tokens

#948 Medium

Largest Time for Given Digits

#949 Medium

Reveal Cards In Increasing Order

#950 Medium

Largest Component Size by Common Factor

#952 Hard

Verifying an Alien Dictionary

#953 Easy

Array of Doubled Pairs

#954 Medium

Delete Columns to Make Sorted II

#955 Medium

Tallest Billboard

#956 Hard

Prison Cells After N Days

#957 Medium

Regions Cut By Slashes

#959 Medium

Delete Columns to Make Sorted III

#960 Hard

N-Repeated Element in Size 2N Array

#961 Easy

Maximum Width Ramp

#962 Medium

Minimum Area Rectangle II

#963 Medium

Vowel Spellchecker

#966 Medium

Pancake Sorting

#969 Medium

K Closest Points to Origin

#973 Medium

Subarray Sums Divisible by K

#974 Medium

Odd Even Jump

#975 Hard

Largest Perimeter Triangle

#976 Easy

Squares of a Sorted Array

#977 Easy

Longest Turbulent Subarray

#978 Medium

Unique Paths III

#980 Hard

Triples with Bitwise AND Equal To Zero

#982 Hard

Minimum Cost For Tickets

#983 Medium

Sum of Even Numbers After Queries

#985 Easy

Interval List Intersections

#986 Medium

Add to Array-Form of Integer

#989 Easy

Satisfiability of Equality Equations

#990 Medium

Subarrays with K Different Integers

#992 Hard

Rotting Oranges

#994 Medium

Minimum Number of K Consecutive Bit Flips

#995 Hard

Number of Squareful Arrays

#996 Hard

Find the Town Judge

#997 Easy

Available Captures for Rook

#999 Easy

Minimum Cost to Merge Stones

#1000 Hard

Grid Illumination

#1001 Hard

Find Common Characters

#1002 Easy

Max Consecutive Ones III

#1004 Medium

Maximize Sum Of Array After K Negations

#1005 Easy

Minimum Domino Rotations For Equal Row

#1007 Medium

Construct Binary Search Tree from Preorder Traversal

#1008 Medium

Pairs of Songs With Total Durations Divisible by 60

#1010 Medium

Capacity To Ship Packages Within D Days

#1011 Medium

Partition Array Into Three Parts With Equal Sum

#1013 Easy

Best Sightseeing Pair

#1014 Medium

Binary Prefix Divisible By 5

#1018 Easy

Next Greater Node In Linked List

#1019 Medium

Number of Enclaves

#1020 Medium

Camelcase Matching

#1023 Medium

Video Stitching

#1024 Medium

Longest Arithmetic Subsequence

#1027 Medium

Two City Scheduling

#1029 Medium

Matrix Cells in Distance Order

#1030 Easy

Maximum Sum of Two Non-Overlapping Subarrays

#1031 Medium

Stream of Characters

#1032 Hard

Coloring A Border

#1034 Medium

Uncrossed Lines

#1035 Medium

Escape a Large Maze

#1036 Hard

Valid Boomerang

#1037 Easy

Minimum Score Triangulation of Polygon

#1039 Medium

Moving Stones Until Consecutive II

#1040 Medium

Partition Array for Maximum Sum

#1043 Medium

Last Stone Weight

#1046 Easy

Longest String Chain

#1048 Medium

Last Stone Weight II

#1049 Medium

Height Checker

#1051 Easy

Grumpy Bookstore Owner

#1052 Medium

Previous Permutation With One Swap

#1053 Medium

Distant Barcodes

#1054 Medium

Flip Columns For Maximum Number of Equal Rows

#1072 Medium

Adding Two Negabinary Numbers

#1073 Medium

Number of Submatrices That Sum to Target

#1074 Hard

Duplicate Zeros

#1089 Easy

Largest Values From Labels

#1090 Medium

Shortest Path in Binary Matrix

#1091 Medium

Statistics from a Large Sample

#1093 Medium

Car Pooling

#1094 Medium

Find in Mountain Array

#1095 Hard

Filling Bookcase Shelves

#1105 Medium

Corporate Flight Bookings

#1109 Medium

Delete Nodes And Return Forest

#1110 Medium

Relative Sort Array

#1122 Easy

Longest Well-Performing Interval

#1124 Medium

Smallest Sufficient Team

#1125 Hard

Number of Equivalent Domino Pairs

#1128 Easy

Minimum Cost Tree From Leaf Values

#1130 Medium

Maximum of Absolute Value Expression

#1131 Medium

Largest 1-Bordered Square

#1139 Medium

Stone Game II

#1140 Medium

Decrease Elements To Make Array Zigzag

#1144 Medium

Snapshot Array

#1146 Medium

Online Majority Element In Subarray

#1157 Hard

Find Words That Can Be Formed by Characters

#1160 Easy

As Far from Land as Possible

#1162 Medium

Invalid Transactions

#1169 Medium

Compare Strings by Frequency of the Smallest Character

#1170 Medium

Can Make Palindrome from Substring

#1177 Medium

Number of Valid Words for Each Puzzle

#1178 Hard

Distance Between Bus Stops

#1184 Easy

Maximum Subarray Sum with One Deletion

#1186 Medium

Make Array Strictly Increasing

#1187 Hard

K-Concatenation Maximum Sum

#1191 Medium

Minimum Absolute Difference

#1200 Easy

Smallest String With Swaps

#1202 Medium

Unique Number of Occurrences

#1207 Easy

Minimum Moves to Reach Target with Rotations

#1210 Hard

Minimum Cost to Move Chips to The Same Position

#1217 Easy

Longest Arithmetic Subsequence of Given Difference

#1218 Medium

Path with Maximum Gold

#1219 Medium

Queens That Can Attack the King

#1222 Medium

Dice Roll Simulation

#1223 Hard

Maximum Equal Frequency

#1224 Hard

Check If It Is a Straight Line

#1232 Easy

Remove Sub-Folders from the Filesystem

#1233 Medium

Maximum Profit in Job Scheduling

#1235 Hard

Maximum Length of a Concatenated String with Unique Characters

#1239 Medium

Count Number of Nice Subarrays

#1248 Medium

Check If It Is a Good Array

#1250 Hard

Cells with Odd Values in a Matrix

#1252 Easy

Reconstruct a 2-Row Binary Matrix

#1253 Medium

Number of Closed Islands

#1254 Medium

Maximum Score Words Formed by Letters

#1255 Hard

Shift 2D Grid

#1260 Easy

Greatest Sum Divisible by Three

#1262 Medium

Minimum Moves to Move a Box to Their Target Location

#1263 Hard

Minimum Time Visiting All Points

#1266 Easy

Count Servers that Communicate

#1267 Medium

Search Suggestions System

#1268 Medium

Find Winner on a Tic Tac Toe Game

#1275 Easy

Count Square Submatrices with All Ones

#1277 Medium

Group the People Given the Group Size They Belong To

#1282 Medium

Find the Smallest Divisor Given a Threshold

#1283 Medium

Minimum Number of Flips to Convert Binary Matrix to Zero Matrix

#1284 Hard

Element Appearing More Than 25% In Sorted Array

#1287 Easy

Remove Covered Intervals

#1288 Medium

Minimum Falling Path Sum II

#1289 Hard

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

#1292 Medium

Shortest Path in a Grid with Obstacles Elimination

#1293 Hard

Find Numbers with Even Number of Digits

#1295 Easy

Divide Array in Sets of K Consecutive Numbers

#1296 Medium

Maximum Candies You Can Get from Boxes

#1298 Hard

Replace Elements with Greatest Element on Right Side

#1299 Easy

Sum of Mutated Array Closest to Target

#1300 Medium

Number of Paths with Max Score

#1301 Hard

Find N Unique Integers Sum up to Zero

#1304 Easy

Jump Game III

#1306 Medium

Verbal Arithmetic Puzzle

#1307 Hard

XOR Queries of a Subarray

#1310 Medium

Get Watched Videos by Your Friends

#1311 Medium

Decompress Run-Length Encoded List

#1313 Easy

Matrix Block Sum

#1314 Medium

Print Words Vertically

#1324 Medium

Minimum Number of Taps to Open to Water a Garden

#1326 Hard

Sort the Matrix Diagonally

#1329 Medium

Reverse Subarray To Maximize Array Value

#1330 Hard

Rank Transform of an Array

#1331 Easy

Filter Restaurants by Vegan-Friendly, Price and Distance

#1333 Medium

Minimum Difficulty of a Job Schedule

#1335 Hard

The K Weakest Rows in a Matrix

#1337 Easy

Reduce Array Size to The Half

#1338 Medium

Jump Game V

#1340 Hard

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

#1343 Medium

Jump Game IV

#1345 Hard

Check If N and Its Double Exist

#1346 Easy

Maximum Students Taking Exam

#1349 Hard

Count Negative Numbers in a Sorted Matrix

#1351 Easy

Product of the Last K Numbers

#1352 Medium

Maximum Number of Events That Can Be Attended

#1353 Medium

Construct Target Array With Multiple Sums

#1354 Hard

Sort Integers by The Number of 1 Bits

#1356 Easy

Apply Discount Every n Orders

#1357 Medium

Largest Multiple of Three

#1363 Hard

How Many Numbers Are Smaller Than the Current Number

#1365 Easy

Rank Teams by Votes

#1366 Medium

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

#1368 Hard

Number of Times Binary String Is Prefix-Aligned

#1375 Medium

Lucky Numbers in a Matrix

#1380 Easy

Design a Stack With Increment Operation

#1381 Medium

Maximum Performance of a Team

#1383 Hard

Find the Distance Value Between Two Arrays

#1385 Easy

Cinema Seat Allocation

#1386 Medium

Pizza With 3n Slices

#1388 Hard

Create Target Array in the Given Order

#1389 Easy

Four Divisors

#1390 Medium

Check if There is a Valid Path in a Grid

#1391 Medium

Find Lucky Integer in an Array

#1394 Easy

Count Number of Teams

#1395 Medium

Reducing Dishes

#1402 Hard

Minimum Subsequence in Non-Increasing Order

#1403 Easy

Stone Game III

#1406 Hard

String Matching in an Array

#1408 Easy

Queries on a Permutation With Key

#1409 Medium

Minimum Value to Get Positive Step by Step Sum

#1413 Easy

Display Table of Food Orders in a Restaurant

#1418 Medium

Maximum Points You Can Obtain from Cards

#1423 Medium

Diagonal Traverse II

#1424 Medium

Constrained Subsequence Sum

#1425 Hard

Kids With the Greatest Number of Candies

#1431 Easy

Number of Ways to Wear Different Hats to Each Other

#1434 Hard

Destination City

#1436 Easy

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

#1437 Easy

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

#1438 Medium

Find the Kth Smallest Sum of a Matrix With Sorted Rows

#1439 Hard

Build an Array With Stack Operations

#1441 Medium

Count Triplets That Can Form Two Arrays of Equal XOR

#1442 Medium

Number of Ways of Cutting a Pizza

#1444 Hard

Form Largest Integer With Digits That Add up to Target

#1449 Hard

Number of Students Doing Homework at a Given Time

#1450 Easy

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

#1452 Medium

Maximum Number of Darts Inside of a Circular Dartboard

#1453 Hard

Max Dot Product of Two Subsequences

#1458 Hard

Make Two Arrays Equal by Reversing Sub-arrays

#1460 Easy

Cherry Pickup II

#1463 Hard

Maximum Product of Two Elements in an Array

#1464 Easy

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

#1465 Medium

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

#1467 Hard

Shuffle the Array

#1470 Easy

The k Strongest Values in an Array

#1471 Medium

Design Browser History

#1472 Medium

Paint House III

#1473 Hard

Final Prices With a Special Discount in a Shop

#1475 Easy

Subrectangle Queries

#1476 Medium

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

#1477 Medium

Allocate Mailboxes

#1478 Hard

Running Sum of 1d Array

#1480 Easy

Least Number of Unique Integers after K Removals

#1481 Medium

Minimum Number of Days to Make m Bouquets

#1482 Medium

Making File Names Unique

#1487 Medium

Avoid Flood in The City

#1488 Medium

Average Salary Excluding the Minimum and Maximum Salary

#1491 Easy

Longest Subarray of 1's After Deleting One Element

#1493 Medium

Check If Array Pairs Are Divisible by k

#1497 Medium

Number of Subsequences That Satisfy the Given Sum Condition

#1498 Medium

Max Value of Equation

#1499 Hard

Can Make Arithmetic Progression From Sequence

#1502 Easy

Last Moment Before All Ants Fall Out of a Plank

#1503 Medium

Count Submatrices With All Ones

#1504 Medium

Range Sum of Sorted Subarray Sums

#1508 Medium

Minimum Difference Between Largest and Smallest Value in Three Moves

#1509 Medium

Number of Good Pairs

#1512 Easy

Path with Maximum Probability

#1514 Medium

Best Position for a Service Centre

#1515 Hard

Find a Value of a Mysterious Function Closest to Target

#1521 Hard

Number of Sub-arrays With Odd Sum

#1524 Medium

Minimum Number of Increments on Subarrays to Form a Target Array

#1526 Hard

Shuffle String

#1528 Easy

Count Good Triplets

#1534 Easy

Find the Winner of an Array Game

#1535 Medium

Minimum Swaps to Arrange a Binary Grid

#1536 Medium

Get the Maximum Score

#1537 Hard

Kth Missing Positive Number

#1539 Easy

Maximum Number of Non-Overlapping Subarrays With Sum Equals Target

#1546 Medium

Minimum Cost to Cut a Stick

#1547 Hard

Three Consecutive Odds

#1550 Easy

Magnetic Force Between Two Balls

#1552 Medium

Minimum Numbers of Function Calls to Make Target Array

#1558 Medium

Detect Cycles in 2D Grid

#1559 Medium

Most Visited Sector in a Circular Track

#1560 Easy

Maximum Number of Coins You Can Get

#1561 Medium

Find Latest Group of Size M

#1562 Medium

Stone Game V

#1563 Hard

Detect Pattern of Length M Repeated K or More Times

#1566 Easy

Maximum Length of Subarray With Positive Product

#1567 Medium

Minimum Number of Days to Disconnect Island

#1568 Hard

Number of Ways to Reorder Array to Get Same BST

#1569 Hard

Matrix Diagonal Sum

#1572 Easy

Shortest Subarray to be Removed to Make Array Sorted

#1574 Medium

Count All Possible Routes

#1575 Hard

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

#1577 Medium

Minimum Time to Make Rope Colorful

#1578 Medium

Special Positions in a Binary Matrix

#1582 Easy

Count Unhappy Friends

#1583 Medium

Min Cost to Connect All Points

#1584 Medium

Sum of All Odd Length Subarrays

#1588 Easy

Maximum Sum Obtained of Any Permutation

#1589 Medium

Make Sum Divisible by P

#1590 Medium

Strange Printer II

#1591 Hard

Maximum Non Negative Product in a Matrix

#1594 Medium

Minimum Cost to Connect Two Groups of Points

#1595 Hard

Crawler Log Folder

#1598 Easy

Maximum Profit of Operating a Centennial Wheel

#1599 Medium

Maximum Number of Achievable Transfer Requests

#1601 Hard

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

#1604 Medium

Find Valid Matrix Given Row and Column Sums

#1605 Medium

Special Array With X Elements Greater Than or Equal X

#1608 Easy

Maximum Number of Visible Points

#1610 Hard

Mean of Array After Removing Some Elements

#1619 Easy

Coordinate With Maximum Network Quality

#1620 Medium

Best Team With No Conflicts

#1626 Medium

Graph Connectivity With Threshold

#1627 Hard

Slowest Key

#1629 Easy

Arithmetic Subarrays

#1630 Medium

Path With Minimum Effort

#1631 Medium

Rank Transform of a Matrix

#1632 Hard

Sort Array by Increasing Frequency

#1636 Easy

Widest Vertical Area Between Two Points Containing No Points

#1637 Easy

Number of Ways to Form a Target String Given a Dictionary

#1639 Hard

Check Array Formation Through Concatenation

#1640 Easy

Furthest Building You Can Reach

#1642 Medium

Kth Smallest Instructions

#1643 Hard

Get Maximum in Generated Array

#1646 Easy

Sell Diminishing-Valued Colored Balls

#1648 Medium

Create Sorted Array through Instructions

#1649 Hard

Defuse the Bomb

#1652 Easy

Richest Customer Wealth

#1672 Easy

Max Number of K-Sum Pairs

#1679 Medium

Construct the Lexicographically Largest Valid Sequence

#1718 Medium

Tuple with Same Product

#1726 Medium

Find the Highest Altitude

#1732 Easy

Sum of Unique Elements

#1748 Easy

Maximum Absolute Sum of Any Subarray

#1749 Medium

Check if Array Is Sorted and Rotated

#1752 Easy

Form Array by Concatenating Subarrays of Another Array

#1764 Medium

Map of Highest Peak

#1765 Medium

Minimum Number of Operations to Move All Balls to Each Box

#1769 Medium

Maximum Ascending Subarray Sum

#1800 Easy

Finding the Users Active Minutes

#1817 Medium

Maximum Ice Cream Bars

#1833 Medium

Sum of All Subset XOR Totals

#1863 Easy

Determine Whether Matrix Can Be Obtained By Rotation

#1886 Easy

Build Array from Permutation

#1920 Easy

Nearest Exit from Entrance in Maze

#1926 Medium

Concatenation of Array

#1929 Easy

Find Unique Binary String

#1980 Medium

Find the Kth Largest Integer in the Array

#1985 Medium

The Number of Weak Characters in the Game

#1996 Medium

Final Value of Variable After Performing Operations

#2011 Easy

Maximum Difference Between Increasing Elements

#2016 Easy

Grid Game

#2017 Medium

Minimum Operations to Make a Uni-Value Grid

#2033 Medium

Minimum Number of Moves to Seat Everyone

#2037 Easy

Kth Distinct String in an Array

#2053 Medium

Count Common Words With One Occurrence

#2085 Easy

Find Subsequence of Length K With the Largest Sum

#2099 Medium

Maximum Number of Words Found in Sentences

#2114 Easy

Find All Possible Recipes from Given Supplies

#2115 Medium

Solving Questions With Brainpower

#2140 Medium

Count the Hidden Sequences

#2145 Medium

Keep Multiplying Found Values by Two

#2154 Easy

Partition Array According to Given Pivot

#2161 Medium

Count Equal and Divisible Pairs in an Array

#2176 Easy

Count Good Triplets in an Array

#2179 Hard

Counting Words With a Given Prefix

#2185 Easy

Divide Array Into Equal Pairs

#2206 Easy

Find the Difference of Two Arrays

#2215 Easy

Maximum Candies Allocated to K Children

#2226 Medium

Minimum Rounds to Complete All Tasks

#2244 Medium

Number of Ways to Split Array

#2270 Medium

Successful Pairs of Spells and Potions

#2300 Medium

Max Sum of a Pair With Equal Sum of Digits

#2342 Medium

Equal Row and Column Pairs

#2352 Medium

Count Number of Bad Pairs

#2364 Medium

Shifting Letters II

#2381 Medium

Longest Nice Subarray

#2401 Medium

Bitwise XOR of All Pairings

#2425 Medium

Apply Operations to an Array

#2460 Easy

Total Cost to Hire K Workers

#2462 Medium

Most Profitable Path in a Tree

#2467 Medium

Difference Between Ones and Zeros in Row and Column

#2482 Medium

Maximum Number of Points From Grid Queries

#2503 Hard

Maximum Count of Positive Integer and Negative Integer

#2529 Easy

Difference Between Element Sum and Digit Sum of an Array

#2535 Easy

Count the Number of Good Subarrays

#2537 Medium

Maximum Subsequence Score

#2542 Medium

Put Marbles in Bags

#2551 Hard

Count Vowel Strings in Ranges

#2559 Medium

House Robber IV

#2560 Medium

Count the Number of Fair Pairs

#2563 Medium

Merge Two 2D Arrays by Summing Values

#2570 Easy

Minimum Time to Repair Cars

#2594 Medium

Find the Prefix Common Array of Two Arrays

#2657 Medium

Maximum Number of Fish in a Grid

#2658 Medium

First Completely Painted Row or Column

#2661 Medium

Neighboring Bitwise XOR

#2683 Medium

Minimum Index of a Valid Split

#2780 Medium

Count Complete Subarrays in an Array

#2799 Medium

Apply Operations to Maximize Score

#2818 Hard

Maximum Value of an Ordered Triplet I

#2873 Easy

Maximum Value of an Ordered Triplet II

#2874 Medium

Make Lexicographically Smallest Array by Swapping Elements

#2948 Medium

Find Missing and Repeated Values

#2965 Easy

Count Prefix and Suffix Pairs I

#3042 Easy

Minimum Operations to Exceed Threshold Value II

#3066 Medium

Longest Strictly Increasing or Strictly Decreasing Subarray

#3105 Easy

Minimum Cost Walk in Weighted Graph

#3108 Hard

Special Array I

#3151 Easy

Find the Number of Distinct Colors Among the Balls

#3160 Medium

Count Days Without Meetings

#3169 Medium

Minimum Operations to Make Binary Array Elements Equal to One I

#3191 Medium

Alternating Groups II

#3208 Medium

Zero Array Transformation II

#3356 Medium

Minimum Operations to Make Array Values Equal to K

#3375 Easy

Count Subarrays of Length Three With a Condition

#3392 Easy

Check if Grid can be Cut into Sections

#3394 Medium

Minimum Number of Operations to Make Elements in Array Distinct

#3396 Easy

Maximum Number of Distinct Elements After Operations

#3397 Medium

Minimum Operations to Make Columns Strictly Increasing

#3402 Easy

Sum of Good Numbers

#3452 Easy

Maximum Sum With at Most K Elements

#3462 Medium

Maximize the Distance Between Points on a Square

#3464 Hard