Forem

#LEETCODE Series' Articles

Back to MD ARIFUL HAQUE's Series
623. Add One Row to Tree
Cover image for 623. Add One Row to Tree

623. Add One Row to Tree

Comments
4 min read
988. Smallest String Starting From Leaf
Cover image for 988. Smallest String Starting From Leaf

988. Smallest String Starting From Leaf

3
Comments
4 min read
463. Island Perimeter
Cover image for 463. Island Perimeter

463. Island Perimeter

2
Comments
3 min read
200. Number of Islands
Cover image for 200. Number of Islands

200. Number of Islands

1
Comments
3 min read
1992. Find All Groups of Farmland
Cover image for 1992. Find All Groups of Farmland

1992. Find All Groups of Farmland

1
Comments
3 min read
752. Open the Lock
Cover image for 752. Open the Lock

752. Open the Lock

Comments
4 min read
1971. Find if Path Exists in Graph
Cover image for 1971. Find if Path Exists in Graph

1971. Find if Path Exists in Graph

1
Comments
2 min read
310. Minimum Height Trees
Cover image for 310. Minimum Height Trees

310. Minimum Height Trees

1
Comments
3 min read
1137. N-th Tribonacci Number
Cover image for 1137. N-th Tribonacci Number

1137. N-th Tribonacci Number

Comments
4 min read
2370. Longest Ideal Subsequence
Cover image for 2370. Longest Ideal Subsequence

2370. Longest Ideal Subsequence

Comments
2 min read
1289. Minimum Falling Path Sum II
Cover image for 1289. Minimum Falling Path Sum II

1289. Minimum Falling Path Sum II

Comments
5 min read
514. Freedom Trail
Cover image for 514. Freedom Trail

514. Freedom Trail

1
Comments
4 min read
834. Sum of Distances in Tree
Cover image for 834. Sum of Distances in Tree

834. Sum of Distances in Tree

Comments
3 min read
1700. Number of Students Unable to Eat Lunch
Cover image for 1700. Number of Students Unable to Eat Lunch

1700. Number of Students Unable to Eat Lunch

Comments
2 min read
2073. Time Needed to Buy Tickets
Cover image for 2073. Time Needed to Buy Tickets

2073. Time Needed to Buy Tickets

Comments
2 min read
2997. Minimum Number of Operations to Make Array XOR Equal to K
Cover image for 2997. Minimum Number of Operations to Make Array XOR Equal to K

2997. Minimum Number of Operations to Make Array XOR Equal to K

Comments
2 min read
1614. Maximum Nesting Depth of the Parentheses
Cover image for 1614. Maximum Nesting Depth of the Parentheses

1614. Maximum Nesting Depth of the Parentheses

Comments
3 min read
1544. Make The String Great
Cover image for 1544. Make The String Great

1544. Make The String Great

Comments
4 min read
1915. Number of Wonderful Substrings
Cover image for 1915. Number of Wonderful Substrings

1915. Number of Wonderful Substrings

Comments
2 min read
1249. Minimum Remove to Make Valid Parentheses
Cover image for 1249. Minimum Remove to Make Valid Parentheses

1249. Minimum Remove to Make Valid Parentheses

Comments
4 min read
950. Reveal Cards In Increasing Order
Cover image for 950. Reveal Cards In Increasing Order

950. Reveal Cards In Increasing Order

Comments
4 min read
678. Valid Parenthesis String
Cover image for 678. Valid Parenthesis String

678. Valid Parenthesis String

Comments
3 min read
2000. Reverse Prefix of Word
Cover image for 2000. Reverse Prefix of Word

2000. Reverse Prefix of Word

Comments
2 min read
79. Word Search
Cover image for 79. Word Search

79. Word Search

1
Comments
2 min read
129. Sum Root to Leaf Numbers
Cover image for 129. Sum Root to Leaf Numbers

129. Sum Root to Leaf Numbers

Comments
3 min read
2441. Largest Positive Integer That Exists With Its Negative
Cover image for 2441. Largest Positive Integer That Exists With Its Negative

2441. Largest Positive Integer That Exists With Its Negative

Comments
1 min read
58. Length of Last Word
Cover image for 58. Length of Last Word

58. Length of Last Word

Comments
2 min read
205. Isomorphic Strings
Cover image for 205. Isomorphic Strings

205. Isomorphic Strings

Comments
2 min read
165. Compare Version Numbers
Cover image for 165. Compare Version Numbers

165. Compare Version Numbers

Comments
3 min read
402. Remove K Digits
Cover image for 402. Remove K Digits

402. Remove K Digits

Comments
3 min read
42. Trapping Rain Water
Cover image for 42. Trapping Rain Water

42. Trapping Rain Water

Comments
1 min read
881. Boats to Save People
Cover image for 881. Boats to Save People

881. Boats to Save People

Comments
3 min read
237. Delete Node in a Linked List
Cover image for 237. Delete Node in a Linked List

237. Delete Node in a Linked List

Comments
3 min read
85. Maximal Rectangle
Cover image for 85. Maximal Rectangle

85. Maximal Rectangle

1
Comments
3 min read
404. Sum of Left Leaves
Cover image for 404. Sum of Left Leaves

404. Sum of Left Leaves

Comments
3 min read
2487. Remove Nodes From Linked List
Cover image for 2487. Remove Nodes From Linked List

2487. Remove Nodes From Linked List

Comments
1 min read
2816. Double a Number Represented as a Linked List
Cover image for 2816. Double a Number Represented as a Linked List

2816. Double a Number Represented as a Linked List

Comments
2 min read
445. Add Two Numbers II
Cover image for 445. Add Two Numbers II

445. Add Two Numbers II

Comments
3 min read
506. Relative Ranks
Cover image for 506. Relative Ranks

506. Relative Ranks

Comments
3 min read
1. Two Sum
Cover image for 1. Two Sum

1. Two Sum

Comments
2 min read
3075. Maximize Happiness of Selected Children
Cover image for 3075. Maximize Happiness of Selected Children

3075. Maximize Happiness of Selected Children

1
Comments
2 min read
2. Add Two Numbers
Cover image for 2. Add Two Numbers

2. Add Two Numbers

Comments
3 min read
786. K-th Smallest Prime Fraction
Cover image for 786. K-th Smallest Prime Fraction

786. K-th Smallest Prime Fraction

Comments
3 min read
3. Longest Substring Without Repeating Characters
Cover image for 3. Longest Substring Without Repeating Characters

3. Longest Substring Without Repeating Characters

1
Comments
3 min read
3123. Find Edges in Shortest Paths
Cover image for 3123. Find Edges in Shortest Paths

3123. Find Edges in Shortest Paths

2
Comments
2 min read
3122. Minimum Number of Operations to Satisfy Conditions
Cover image for 3122. Minimum Number of Operations to Satisfy Conditions

3122. Minimum Number of Operations to Satisfy Conditions

Comments
2 min read
3121. Count the Number of Special Characters II
Cover image for 3121. Count the Number of Special Characters II

3121. Count the Number of Special Characters II

Comments
1 min read
3113. Find the Number of Subarrays Where Boundary Elements Are Maximum
Cover image for 3113. Find the Number of Subarrays Where Boundary Elements Are Maximum

3113. Find the Number of Subarrays Where Boundary Elements Are Maximum

Comments
3 min read
2570. Merge Two 2D Arrays by Summing Values solution
Cover image for 2570. Merge Two 2D Arrays by Summing Values solution

2570. Merge Two 2D Arrays by Summing Values solution

Comments
6 min read
2530. Maximal Score After Applying K Operations
Cover image for 2530. Maximal Score After Applying K Operations

2530. Maximal Score After Applying K Operations

Comments
4 min read
857. Minimum Cost to Hire K Workers
Cover image for 857. Minimum Cost to Hire K Workers

857. Minimum Cost to Hire K Workers

Comments
4 min read
4. Median of Two Sorted Arrays
Cover image for 4. Median of Two Sorted Arrays

4. Median of Two Sorted Arrays

Comments
2 min read
2373. Largest Local Values in a Matrix
Cover image for 2373. Largest Local Values in a Matrix

2373. Largest Local Values in a Matrix

Comments
2 min read
17. Letter Combinations of a Phone Number
Cover image for 17. Letter Combinations of a Phone Number

17. Letter Combinations of a Phone Number

Comments
1 min read
861. Score After Flipping Matrix
Cover image for 861. Score After Flipping Matrix

861. Score After Flipping Matrix

Comments
3 min read
1219. Path with Maximum Gold
Cover image for 1219. Path with Maximum Gold

1219. Path with Maximum Gold

Comments 1
4 min read
2812. Find the Safest Path in a Grid
Cover image for 2812. Find the Safest Path in a Grid

2812. Find the Safest Path in a Grid

1
Comments
3 min read
2331. Evaluate Boolean Binary Tree
Cover image for 2331. Evaluate Boolean Binary Tree

2331. Evaluate Boolean Binary Tree

1
Comments
2 min read
1325. Delete Leaves With a Given Value
Cover image for 1325. Delete Leaves With a Given Value

1325. Delete Leaves With a Given Value

Comments
4 min read
979. Distribute Coins in Binary Tree
Cover image for 979. Distribute Coins in Binary Tree

979. Distribute Coins in Binary Tree

Comments
5 min read
3068. Find the Maximum Sum of Node Values
Cover image for 3068. Find the Maximum Sum of Node Values

3068. Find the Maximum Sum of Node Values

2
Comments 1
5 min read
1863. Sum of All Subset XOR Totals
Cover image for 1863. Sum of All Subset XOR Totals

1863. Sum of All Subset XOR Totals

Comments
4 min read
78. Subsets
Cover image for 78. Subsets

78. Subsets

Comments
1 min read
131. Palindrome Partitioning
Cover image for 131. Palindrome Partitioning

131. Palindrome Partitioning

Comments
2 min read
2597. The Number of Beautiful Subsets
Cover image for 2597. The Number of Beautiful Subsets

2597. The Number of Beautiful Subsets

1
Comments
2 min read
1255. Maximum Score Words Formed by Letters
Cover image for 1255. Maximum Score Words Formed by Letters

1255. Maximum Score Words Formed by Letters

Comments
6 min read
140. Word Break II
Cover image for 140. Word Break II

140. Word Break II

Comments
2 min read
552. Student Attendance Record II
Cover image for 552. Student Attendance Record II

552. Student Attendance Record II

1
Comments
3 min read
1608. Special Array With X Elements Greater Than or Equal X
Cover image for 1608. Special Array With X Elements Greater Than or Equal X

1608. Special Array With X Elements Greater Than or Equal X

Comments
4 min read
1208. Get Equal Substrings Within Budget
Cover image for 1208. Get Equal Substrings Within Budget

1208. Get Equal Substrings Within Budget

Comments
5 min read
1404. Number of Steps to Reduce a Number in Binary Representation to One
Cover image for 1404. Number of Steps to Reduce a Number in Binary Representation to One

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

Comments
4 min read
1442. Count Triplets That Can Form Two Arrays of Equal XOR
Cover image for 1442. Count Triplets That Can Form Two Arrays of Equal XOR

1442. Count Triplets That Can Form Two Arrays of Equal XOR

Comments
4 min read
260. Single Number III
Cover image for 260. Single Number III

260. Single Number III

1
Comments
1 min read
3110. Score of a String
Cover image for 3110. Score of a String

3110. Score of a String

2
Comments
1 min read
344. Reverse String
Cover image for 344. Reverse String

344. Reverse String

1
Comments
2 min read
2486. Append Characters to String to Make Subsequence
Cover image for 2486. Append Characters to String to Make Subsequence

2486. Append Characters to String to Make Subsequence

Comments
2 min read
409. Longest Palindrome
Cover image for 409. Longest Palindrome

409. Longest Palindrome

Comments
2 min read
1002. Find Common Characters
Cover image for 1002. Find Common Characters

1002. Find Common Characters

Comments
3 min read
846. Hand of Straights
Cover image for 846. Hand of Straights

846. Hand of Straights

Comments
4 min read
648. Replace Words
Cover image for 648. Replace Words

648. Replace Words

1
Comments
4 min read
523. Continuous Subarray Sum
Cover image for 523. Continuous Subarray Sum

523. Continuous Subarray Sum

1
Comments
3 min read
974. Subarray Sums Divisible by K
Cover image for 974. Subarray Sums Divisible by K

974. Subarray Sums Divisible by K

Comments
4 min read
1051. Height Checker
Cover image for 1051. Height Checker

1051. Height Checker

1
Comments
4 min read
1122. Relative Sort Array
Cover image for 1122. Relative Sort Array

1122. Relative Sort Array

Comments
5 min read
75. Sort Colors
Cover image for 75. Sort Colors

75. Sort Colors

Comments
3 min read
2037. Minimum Number of Moves to Seat Everyone
Cover image for 2037. Minimum Number of Moves to Seat Everyone

2037. Minimum Number of Moves to Seat Everyone

Comments
2 min read
945. Minimum Increment to Make Array Unique
Cover image for 945. Minimum Increment to Make Array Unique

945. Minimum Increment to Make Array Unique

Comments
4 min read
502. IPO
Cover image for 502. IPO

502. IPO

Comments
3 min read
330. Patching Array
Cover image for 330. Patching Array

330. Patching Array

Comments
3 min read
633. Sum of Square Numbers
Cover image for 633. Sum of Square Numbers

633. Sum of Square Numbers

Comments
2 min read
826. Most Profit Assigning Work
Cover image for 826. Most Profit Assigning Work

826. Most Profit Assigning Work

Comments
3 min read
1482. Minimum Number of Days to Make m Bouquets
Cover image for 1482. Minimum Number of Days to Make m Bouquets

1482. Minimum Number of Days to Make m Bouquets

1
Comments
5 min read
1552. Magnetic Force Between Two Balls
Cover image for 1552. Magnetic Force Between Two Balls

1552. Magnetic Force Between Two Balls

2
Comments
3 min read
1052. Grumpy Bookstore Owner
Cover image for 1052. Grumpy Bookstore Owner

1052. Grumpy Bookstore Owner

2
Comments
5 min read
1248. Count Number of Nice Subarrays
Cover image for 1248. Count Number of Nice Subarrays

1248. Count Number of Nice Subarrays

2
Comments
4 min read
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
Cover image for 1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit

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

1
Comments
5 min read
995. Minimum Number of K Consecutive Bit Flips
Cover image for 995. Minimum Number of K Consecutive Bit Flips

995. Minimum Number of K Consecutive Bit Flips

3
Comments
5 min read
1038. Binary Search Tree to Greater Sum Tree
Cover image for 1038. Binary Search Tree to Greater Sum Tree

1038. Binary Search Tree to Greater Sum Tree

Comments
4 min read
1382. Balance a Binary Search Tree
Cover image for 1382. Balance a Binary Search Tree

1382. Balance a Binary Search Tree

Comments
4 min read
1791. Find Center of Star Graph
Cover image for 1791. Find Center of Star Graph

1791. Find Center of Star Graph

Comments
2 min read
2285. Maximum Total Importance of Roads
Cover image for 2285. Maximum Total Importance of Roads

2285. Maximum Total Importance of Roads

Comments
2 min read
2192. All Ancestors of a Node in a Directed Acyclic Graph
Cover image for 2192. All Ancestors of a Node in a Directed Acyclic Graph

2192. All Ancestors of a Node in a Directed Acyclic Graph

Comments
3 min read
1579. Remove Max Number of Edges to Keep Graph Fully Traversable
Cover image for 1579. Remove Max Number of Edges to Keep Graph Fully Traversable

1579. Remove Max Number of Edges to Keep Graph Fully Traversable

Comments
5 min read
1550. Three Consecutive Odds
Cover image for 1550. Three Consecutive Odds

1550. Three Consecutive Odds

Comments 1
3 min read
350. Intersection of Two Arrays II
Cover image for 350. Intersection of Two Arrays II

350. Intersection of Two Arrays II

1
Comments
2 min read
1509. Minimum Difference Between Largest and Smallest Value in Three Moves
Cover image for 1509. Minimum Difference Between Largest and Smallest Value in Three Moves

1509. Minimum Difference Between Largest and Smallest Value in Three Moves

2
Comments
5 min read
2181. Merge Nodes in Between Zeros
Cover image for 2181. Merge Nodes in Between Zeros

2181. Merge Nodes in Between Zeros

1
Comments
3 min read
2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
Cover image for 2058. Find the Minimum and Maximum Number of Nodes Between Critical Points

2058. Find the Minimum and Maximum Number of Nodes Between Critical Points

1
Comments
3 min read
2582. Pass the Pillow
Cover image for 2582. Pass the Pillow

2582. Pass the Pillow

1
Comments
2 min read
1518. Water Bottles
Cover image for 1518. Water Bottles

1518. Water Bottles

1
Comments
4 min read
1823. Find the Winner of the Circular Game
Cover image for 1823. Find the Winner of the Circular Game

1823. Find the Winner of the Circular Game

1
Comments 1
2 min read
1701. Average Waiting Time
Cover image for 1701. Average Waiting Time

1701. Average Waiting Time

1
Comments
3 min read
1598. Crawler Log Folder
Cover image for 1598. Crawler Log Folder

1598. Crawler Log Folder

2
Comments
3 min read
1190. Reverse Substrings Between Each Pair of Parentheses
Cover image for 1190. Reverse Substrings Between Each Pair of Parentheses

1190. Reverse Substrings Between Each Pair of Parentheses

3
Comments
2 min read
1717. Maximum Score From Removing Substrings
Cover image for 1717. Maximum Score From Removing Substrings

1717. Maximum Score From Removing Substrings

1
Comments
3 min read
2751. Robot Collisions
Cover image for 2751. Robot Collisions

2751. Robot Collisions

3
Comments
4 min read
726. Number of Atoms
Cover image for 726. Number of Atoms

726. Number of Atoms

1
Comments
3 min read
2196. Create Binary Tree From Descriptions
Cover image for 2196. Create Binary Tree From Descriptions

2196. Create Binary Tree From Descriptions

2
Comments
3 min read
2096. Step-By-Step Directions From a Binary Tree Node to Another
Cover image for 2096. Step-By-Step Directions From a Binary Tree Node to Another

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

1
Comments
3 min read
1110. Delete Nodes And Return Forest
Cover image for 1110. Delete Nodes And Return Forest

1110. Delete Nodes And Return Forest

1
Comments
2 min read
1636. Sort Array by Increasing Frequency
Cover image for 1636. Sort Array by Increasing Frequency

1636. Sort Array by Increasing Frequency

2
Comments
2 min read
1530. Number of Good Leaf Nodes Pairs
Cover image for 1530. Number of Good Leaf Nodes Pairs

1530. Number of Good Leaf Nodes Pairs

2
Comments
3 min read
2191. Sort the Jumbled Numbers
Cover image for 2191. Sort the Jumbled Numbers

2191. Sort the Jumbled Numbers

2
Comments
3 min read
1380. Lucky Numbers in a Matrix
Cover image for 1380. Lucky Numbers in a Matrix

1380. Lucky Numbers in a Matrix

2
Comments
3 min read
1605. Find Valid Matrix Given Row and Column Sums
Cover image for 1605. Find Valid Matrix Given Row and Column Sums

1605. Find Valid Matrix Given Row and Column Sums

3
Comments
3 min read
2418. Sort the People
Cover image for 2418. Sort the People

2418. Sort the People

2
Comments
2 min read
2392. Build a Matrix With Conditions
Cover image for 2392. Build a Matrix With Conditions

2392. Build a Matrix With Conditions

2
Comments
4 min read
912. Sort an Array
Cover image for 912. Sort an Array

912. Sort an Array

3
Comments
187 min read
1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
Cover image for 1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance

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

3
Comments
3 min read
2976. Minimum Cost to Convert String I
Cover image for 2976. Minimum Cost to Convert String I

2976. Minimum Cost to Convert String I

1
Comments
4 min read
2045. Second Minimum Time to Reach Destination
Cover image for 2045. Second Minimum Time to Reach Destination

2045. Second Minimum Time to Reach Destination

2
Comments
4 min read
1395. Count Number of Teams
Cover image for 1395. Count Number of Teams

1395. Count Number of Teams

2
Comments
7 min read
1653. Minimum Deletions to Make String Balanced
Cover image for 1653. Minimum Deletions to Make String Balanced

1653. Minimum Deletions to Make String Balanced

1
Comments
2 min read
1105. Filling Bookcase Shelves
Cover image for 1105. Filling Bookcase Shelves

1105. Filling Bookcase Shelves

3
Comments 1
3 min read
2678. Number of Senior Citizens
Cover image for 2678. Number of Senior Citizens

2678. Number of Senior Citizens

1
Comments
3 min read
2134 Minimum Swaps to Group All 1's Together II
Cover image for 2134 Minimum Swaps to Group All 1's Together II

2134 Minimum Swaps to Group All 1's Together II

2
Comments
3 min read
1460. Make Two Arrays Equal by Reversing Subarrays
Cover image for 1460. Make Two Arrays Equal by Reversing Subarrays

1460. Make Two Arrays Equal by Reversing Subarrays

Comments
3 min read
1508. Range Sum of Sorted Subarray Sums
Cover image for 1508. Range Sum of Sorted Subarray Sums

1508. Range Sum of Sorted Subarray Sums

Comments
3 min read
2053. Kth Distinct String in an Array
Cover image for 2053. Kth Distinct String in an Array

2053. Kth Distinct String in an Array

Comments
3 min read
3016. Minimum Number of Pushes to Type Word II
Cover image for 3016. Minimum Number of Pushes to Type Word II

3016. Minimum Number of Pushes to Type Word II

Comments
4 min read
273. Integer to English Words
Cover image for 273. Integer to English Words

273. Integer to English Words

Comments
2 min read
885. Spiral Matrix III
Cover image for 885. Spiral Matrix III

885. Spiral Matrix III

1
Comments
3 min read
840. Magic Squares In Grid
Cover image for 840. Magic Squares In Grid

840. Magic Squares In Grid

Comments
2 min read
959. Regions Cut By Slashes
Cover image for 959. Regions Cut By Slashes

959. Regions Cut By Slashes

Comments
2 min read
1568. Minimum Number of Days to Disconnect Island
Cover image for 1568. Minimum Number of Days to Disconnect Island

1568. Minimum Number of Days to Disconnect Island

Comments
3 min read
703. Kth Largest Element in a Stream
Cover image for 703. Kth Largest Element in a Stream

703. Kth Largest Element in a Stream

Comments
148 min read
40. Combination Sum II
Cover image for 40. Combination Sum II

40. Combination Sum II

Comments
2 min read
719. Find K-th Smallest Pair Distance
Cover image for 719. Find K-th Smallest Pair Distance

719. Find K-th Smallest Pair Distance

Comments
3 min read
860. Lemonade Change
Cover image for 860. Lemonade Change

860. Lemonade Change

Comments
3 min read
624. Maximum Distance in Arrays
Cover image for 624. Maximum Distance in Arrays

624. Maximum Distance in Arrays

Comments
2 min read
1937. Maximum Number of Points with Cost
Cover image for 1937. Maximum Number of Points with Cost

1937. Maximum Number of Points with Cost

Comments
4 min read
650. 2 Keys Keyboard
Cover image for 650. 2 Keys Keyboard

650. 2 Keys Keyboard

1
Comments
3 min read
1140. Stone Game II
Cover image for 1140. Stone Game II

1140. Stone Game II

1
Comments
3 min read
664. Strange Printer
Cover image for 664. Strange Printer

664. Strange Printer

Comments
3 min read
476. Number Complement
Cover image for 476. Number Complement

476. Number Complement

Comments
2 min read
592. Fraction Addition and Subtraction
Cover image for 592. Fraction Addition and Subtraction

592. Fraction Addition and Subtraction

1
Comments
2 min read
564. Find the Closest Palindrome
Cover image for 564. Find the Closest Palindrome

564. Find the Closest Palindrome

Comments
2 min read
145. Binary Tree Postorder Traversal
Cover image for 145. Binary Tree Postorder Traversal

145. Binary Tree Postorder Traversal

Comments
2 min read
590. N-ary Tree Postorder Traversa
Cover image for 590. N-ary Tree Postorder Traversa

590. N-ary Tree Postorder Traversa

Comments
3 min read
1514. Path with Maximum Probability
Cover image for 1514. Path with Maximum Probability

1514. Path with Maximum Probability

2
Comments
3 min read
1905. Count Sub Islands
Cover image for 1905. Count Sub Islands

1905. Count Sub Islands

Comments
4 min read
947. Most Stones Removed with Same Row or Column
Cover image for 947. Most Stones Removed with Same Row or Column

947. Most Stones Removed with Same Row or Column

Comments
3 min read
2699. Modify Graph Edge Weights
Cover image for 2699. Modify Graph Edge Weights

2699. Modify Graph Edge Weights

1
Comments
5 min read
1595. Minimum Cost to Connect Two Groups of Points
Cover image for 1595. Minimum Cost to Connect Two Groups of Points

1595. Minimum Cost to Connect Two Groups of Points

Comments
4 min read
2022. Convert 1D Array Into 2D Array
Cover image for 2022. Convert 1D Array Into 2D Array

2022. Convert 1D Array Into 2D Array

Comments
4 min read
1894. Find the Student that Will Replace the Chalk
Cover image for 1894. Find the Student that Will Replace the Chalk

1894. Find the Student that Will Replace the Chalk

Comments
4 min read
1894. Find the Student that Will Replace the Chalk
Cover image for 1894. Find the Student that Will Replace the Chalk

1894. Find the Student that Will Replace the Chalk

Comments
4 min read
1945. Sum of Digits of String After Convert
Cover image for 1945. Sum of Digits of String After Convert

1945. Sum of Digits of String After Convert

Comments
3 min read
874. Walking Robot Simulation
Cover image for 874. Walking Robot Simulation

874. Walking Robot Simulation

Comments
4 min read
2028. Find Missing Observations
Cover image for 2028. Find Missing Observations

2028. Find Missing Observations

Comments
4 min read
1367. Linked List in Binary Tree
Cover image for 1367. Linked List in Binary Tree

1367. Linked List in Binary Tree

2
Comments
4 min read
3217. Delete Nodes From Linked List Present in Array
Cover image for 3217. Delete Nodes From Linked List Present in Array

3217. Delete Nodes From Linked List Present in Array

1
Comments
4 min read
725. Split Linked List in Parts
Cover image for 725. Split Linked List in Parts

725. Split Linked List in Parts

1
Comments
4 min read
2326. Spiral Matrix IV
Cover image for 2326. Spiral Matrix IV

2326. Spiral Matrix IV

1
Comments
4 min read
2807. Insert Greatest Common Divisors in Linked List
Cover image for 2807. Insert Greatest Common Divisors in Linked List

2807. Insert Greatest Common Divisors in Linked List

1
Comments
4 min read
2220. Minimum Bit Flips to Convert Number
Cover image for 2220. Minimum Bit Flips to Convert Number

2220. Minimum Bit Flips to Convert Number

1
Comments
3 min read
1684. Count the Number of Consistent Strings
Cover image for 1684. Count the Number of Consistent Strings

1684. Count the Number of Consistent Strings

1
Comments
3 min read
1310. XOR Queries of a Subarray
Cover image for 1310. XOR Queries of a Subarray

1310. XOR Queries of a Subarray

Comments
3 min read
2419. Longest Subarray With Maximum Bitwise AND
Cover image for 2419. Longest Subarray With Maximum Bitwise AND

2419. Longest Subarray With Maximum Bitwise AND

Comments
3 min read
1371. Find the Longest Substring Containing Vowels in Even Counts
Cover image for 1371. Find the Longest Substring Containing Vowels in Even Counts

1371. Find the Longest Substring Containing Vowels in Even Counts

1
Comments
3 min read
539. Minimum Time Difference
Cover image for 539. Minimum Time Difference

539. Minimum Time Difference

1
Comments
2 min read
884. Uncommon Words from Two Sentences
Cover image for 884. Uncommon Words from Two Sentences

884. Uncommon Words from Two Sentences

Comments
3 min read
179. Largest Number
Cover image for 179. Largest Number

179. Largest Number

1
Comments
2 min read
241. Different Ways to Add Parentheses
Cover image for 241. Different Ways to Add Parentheses

241. Different Ways to Add Parentheses

Comments
3 min read
214. Shortest Palindrome
Cover image for 214. Shortest Palindrome

214. Shortest Palindrome

Comments
3 min read
386. Lexicographical Numbers
Cover image for 386. Lexicographical Numbers

386. Lexicographical Numbers

Comments
2 min read
440. K-th Smallest in Lexicographical Order
Cover image for 440. K-th Smallest in Lexicographical Order

440. K-th Smallest in Lexicographical Order

Comments
3 min read
2707. Extra Characters in a String
Cover image for 2707. Extra Characters in a String

2707. Extra Characters in a String

Comments
3 min read
3043. Find the Length of the Longest Common Prefix
Cover image for 3043. Find the Length of the Longest Common Prefix

3043. Find the Length of the Longest Common Prefix

Comments
3 min read
2416. Sum of Prefix Scores of Strings
Cover image for 2416. Sum of Prefix Scores of Strings

2416. Sum of Prefix Scores of Strings

Comments
4 min read
729. My Calendar I
Cover image for 729. My Calendar I

729. My Calendar I

Comments
4 min read
731. My Calendar II
Cover image for 731. My Calendar II

731. My Calendar II

Comments
4 min read
641. Design Circular Deque
Cover image for 641. Design Circular Deque

641. Design Circular Deque

1
Comments
4 min read
432. All O`one Data Structure
Cover image for 432. All O`one Data Structure

432. All O`one Data Structure

Comments
4 min read
1381. Design a Stack With Increment Operation
Cover image for 1381. Design a Stack With Increment Operation

1381. Design a Stack With Increment Operation

Comments
4 min read
1497. Check If Array Pairs Are Divisible by k
Cover image for 1497. Check If Array Pairs Are Divisible by k

1497. Check If Array Pairs Are Divisible by k

Comments
4 min read
1331. Rank Transform of an Array
Cover image for 1331. Rank Transform of an Array

1331. Rank Transform of an Array

Comments
3 min read
1590. Make Sum Divisible by P
Cover image for 1590. Make Sum Divisible by P

1590. Make Sum Divisible by P

Comments
4 min read
2491. Divide Players Into Teams of Equal Skill
Cover image for 2491. Divide Players Into Teams of Equal Skill

2491. Divide Players Into Teams of Equal Skill

Comments
3 min read
567. Permutation in String
Cover image for 567. Permutation in String

567. Permutation in String

1
Comments
3 min read
1813. Sentence Similarity III
Cover image for 1813. Sentence Similarity III

1813. Sentence Similarity III

Comments
3 min read
2696. Minimum String Length After Removing Substrings
Cover image for 2696. Minimum String Length After Removing Substrings

2696. Minimum String Length After Removing Substrings

Comments
3 min read
1963. Minimum Number of Swaps to Make the String Balanced
Cover image for 1963. Minimum Number of Swaps to Make the String Balanced

1963. Minimum Number of Swaps to Make the String Balanced

Comments
3 min read
1963. Minimum Number of Swaps to Make the String Balanced
Cover image for 1963. Minimum Number of Swaps to Make the String Balanced

1963. Minimum Number of Swaps to Make the String Balanced

Comments
3 min read
921. Minimum Add to Make Parentheses Valid
Cover image for 921. Minimum Add to Make Parentheses Valid

921. Minimum Add to Make Parentheses Valid

Comments
2 min read
962. Maximum Width Ramp
Cover image for 962. Maximum Width Ramp

962. Maximum Width Ramp

Comments
3 min read
1942. The Number of the Smallest Unoccupied Chair
Cover image for 1942. The Number of the Smallest Unoccupied Chair

1942. The Number of the Smallest Unoccupied Chair

Comments
279 min read
2406. Divide Intervals Into Minimum Number of Groups
Cover image for 2406. Divide Intervals Into Minimum Number of Groups

2406. Divide Intervals Into Minimum Number of Groups

Comments
3 min read
632. Smallest Range Covering Elements from K Lists
Cover image for 632. Smallest Range Covering Elements from K Lists

632. Smallest Range Covering Elements from K Lists

Comments
3 min read
2938. Separate Black and White Balls
Cover image for 2938. Separate Black and White Balls

2938. Separate Black and White Balls

Comments
4 min read
1405. Longest Happy String
Cover image for 1405. Longest Happy String

1405. Longest Happy String

Comments
3 min read
670. Maximum Swap
Cover image for 670. Maximum Swap

670. Maximum Swap

Comments
2 min read
2044. Count Number of Maximum Bitwise-OR Subsets
Cover image for 2044. Count Number of Maximum Bitwise-OR Subsets

2044. Count Number of Maximum Bitwise-OR Subsets

Comments
3 min read
1545. Find Kth Bit in Nth Binary String
Cover image for 1545. Find Kth Bit in Nth Binary String

1545. Find Kth Bit in Nth Binary String

Comments
4 min read
1106. Parsing A Boolean Expression
Cover image for 1106. Parsing A Boolean Expression

1106. Parsing A Boolean Expression

Comments
4 min read
1593. Split a String Into the Max Number of Unique Substrings
Cover image for 1593. Split a String Into the Max Number of Unique Substrings

1593. Split a String Into the Max Number of Unique Substrings

2
Comments
3 min read
2583. Kth Largest Sum in a Binary Tree
Cover image for 2583. Kth Largest Sum in a Binary Tree

2583. Kth Largest Sum in a Binary Tree

6
Comments
4 min read
2641. Cousins in Binary Tree II
Cover image for 2641. Cousins in Binary Tree II

2641. Cousins in Binary Tree II

Comments
5 min read
951. Flip Equivalent Binary Trees
Cover image for 951. Flip Equivalent Binary Trees

951. Flip Equivalent Binary Trees

Comments
3 min read
1233. Remove Sub-Folders from the Filesystem
Cover image for 1233. Remove Sub-Folders from the Filesystem

1233. Remove Sub-Folders from the Filesystem

Comments
3 min read
2458. Height of Binary Tree After Subtree Removal Queries
Cover image for 2458. Height of Binary Tree After Subtree Removal Queries

2458. Height of Binary Tree After Subtree Removal Queries

Comments
4 min read
1277. Count Square Submatrices with All Ones
Cover image for 1277. Count Square Submatrices with All Ones

1277. Count Square Submatrices with All Ones

Comments
3 min read
Learning from 200+ LeetCode Problems: A Guide to Building Strong Problem-Solving Skills
Cover image for Learning from 200+ LeetCode Problems: A Guide to Building Strong Problem-Solving Skills

Learning from 200+ LeetCode Problems: A Guide to Building Strong Problem-Solving Skills

Comments
3 min read
2501. Longest Square Streak in an Array
Cover image for 2501. Longest Square Streak in an Array

2501. Longest Square Streak in an Array

Comments
3 min read
2684. Maximum Number of Moves in a Grid
Cover image for 2684. Maximum Number of Moves in a Grid

2684. Maximum Number of Moves in a Grid

1
Comments
3 min read
1671. Minimum Number of Removals to Make Mountain Array
Cover image for 1671. Minimum Number of Removals to Make Mountain Array

1671. Minimum Number of Removals to Make Mountain Array

Comments
3 min read
2463. Minimum Total Distance Traveled
Cover image for 2463. Minimum Total Distance Traveled

2463. Minimum Total Distance Traveled

1
Comments
5 min read
1957. Delete Characters to Make Fancy String
Cover image for 1957. Delete Characters to Make Fancy String

1957. Delete Characters to Make Fancy String

Comments
2 min read
2490. Circular Sentence
Cover image for 2490. Circular Sentence

2490. Circular Sentence

Comments
3 min read
796. Rotate String
Cover image for 796. Rotate String

796. Rotate String

1
Comments
2 min read
3163. String Compression III
Cover image for 3163. String Compression III

3163. String Compression III

Comments
3 min read
2914. Minimum Number of Changes to Make Binary String Beautiful
Cover image for 2914. Minimum Number of Changes to Make Binary String Beautiful

2914. Minimum Number of Changes to Make Binary String Beautiful

Comments
3 min read
3011. Find if Array Can Be Sorted
Cover image for 3011. Find if Array Can Be Sorted

3011. Find if Array Can Be Sorted

Comments
4 min read
2275. Largest Combination With Bitwise AND Greater Than Zero
Cover image for 2275. Largest Combination With Bitwise AND Greater Than Zero

2275. Largest Combination With Bitwise AND Greater Than Zero

Comments
3 min read
1829. Maximum XOR for Each Query
Cover image for 1829. Maximum XOR for Each Query

1829. Maximum XOR for Each Query

Comments
4 min read
3133. Minimum Array End
Cover image for 3133. Minimum Array End

3133. Minimum Array End

Comments
3 min read
3097. Shortest Subarray With OR at Least K II
Cover image for 3097. Shortest Subarray With OR at Least K II

3097. Shortest Subarray With OR at Least K II

1
Comments
4 min read
2601. Prime Subtraction Operation
Cover image for 2601. Prime Subtraction Operation

2601. Prime Subtraction Operation

1
Comments
3 min read
2070. Most Beautiful Item for Each Query
Cover image for 2070. Most Beautiful Item for Each Query

2070. Most Beautiful Item for Each Query

Comments
4 min read
2563. Count the Number of Fair Pairs
Cover image for 2563. Count the Number of Fair Pairs

2563. Count the Number of Fair Pairs

Comments
3 min read
2064. Minimized Maximum of Products Distributed to Any Store
Cover image for 2064. Minimized Maximum of Products Distributed to Any Store

2064. Minimized Maximum of Products Distributed to Any Store

Comments
4 min read
1574. Shortest Subarray to be Removed to Make Array Sorted
Cover image for 1574. Shortest Subarray to be Removed to Make Array Sorted

1574. Shortest Subarray to be Removed to Make Array Sorted

Comments
3 min read
3254. Find the Power of K-Size Subarrays I
Cover image for 3254. Find the Power of K-Size Subarrays I

3254. Find the Power of K-Size Subarrays I

Comments
4 min read
862. Shortest Subarray with Sum at Least K
Cover image for 862. Shortest Subarray with Sum at Least K

862. Shortest Subarray with Sum at Least K

Comments
3 min read
1652. Defuse the Bomb
Cover image for 1652. Defuse the Bomb

1652. Defuse the Bomb

Comments
3 min read
2461. Maximum Sum of Distinct Subarrays With Length K
Cover image for 2461. Maximum Sum of Distinct Subarrays With Length K

2461. Maximum Sum of Distinct Subarrays With Length K

Comments
4 min read
2516. Take K of Each Character From Left and Right
Cover image for 2516. Take K of Each Character From Left and Right

2516. Take K of Each Character From Left and Right

Comments
4 min read
2257. Count Unguarded Cells in the Grid
Cover image for 2257. Count Unguarded Cells in the Grid

2257. Count Unguarded Cells in the Grid

Comments
4 min read
1072. Flip Columns For Maximum Number of Equal Rows
Cover image for 1072. Flip Columns For Maximum Number of Equal Rows

1072. Flip Columns For Maximum Number of Equal Rows

Comments
3 min read
1861. Rotating the Box
Cover image for 1861. Rotating the Box

1861. Rotating the Box

Comments
3 min read
1975. Maximum Matrix Sum
Cover image for 1975. Maximum Matrix Sum

1975. Maximum Matrix Sum

1
Comments
3 min read
773. Sliding Puzzle
Cover image for 773. Sliding Puzzle

773. Sliding Puzzle

Comments
4 min read
2924. Find Champion II
Cover image for 2924. Find Champion II

2924. Find Champion II

Comments
4 min read
3243. Shortest Distance After Road Addition Queries I
Cover image for 3243. Shortest Distance After Road Addition Queries I

3243. Shortest Distance After Road Addition Queries I

Comments
5 min read
2290. Minimum Obstacle Removal to Reach Corner
Cover image for 2290. Minimum Obstacle Removal to Reach Corner

2290. Minimum Obstacle Removal to Reach Corner

Comments
4 min read
2577. Minimum Time to Visit a Cell In a Grid
Cover image for 2577. Minimum Time to Visit a Cell In a Grid

2577. Minimum Time to Visit a Cell In a Grid

Comments
4 min read
2097. Valid Arrangement of Pairs
Cover image for 2097. Valid Arrangement of Pairs

2097. Valid Arrangement of Pairs

Comments
4 min read
1346. Check If N and Its Double Exist
Cover image for 1346. Check If N and Its Double Exist

1346. Check If N and Its Double Exist

Comments
3 min read
1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence
Cover image for 1455. Check If a Word Occurs As a Prefix of Any Word in a Sentence

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

Comments
3 min read
2109. Adding Spaces to a String
Cover image for 2109. Adding Spaces to a String

2109. Adding Spaces to a String

Comments 1
3 min read
2825. Make String a Subsequence Using Cyclic Increments
Cover image for 2825. Make String a Subsequence Using Cyclic Increments

2825. Make String a Subsequence Using Cyclic Increments

Comments
3 min read
2337. Move Pieces to Obtain a String
Cover image for 2337. Move Pieces to Obtain a String

2337. Move Pieces to Obtain a String

Comments
5 min read
2554. Maximum Number of Integers to Choose From a Range I
Cover image for 2554. Maximum Number of Integers to Choose From a Range I

2554. Maximum Number of Integers to Choose From a Range I

Comments
5 min read
1760. Minimum Limit of Balls in a Bag
Cover image for 1760. Minimum Limit of Balls in a Bag

1760. Minimum Limit of Balls in a Bag

Comments
4 min read
2054. Two Best Non-Overlapping Events
Cover image for 2054. Two Best Non-Overlapping Events

2054. Two Best Non-Overlapping Events

2
Comments
3 min read
3152. Special Array II
Cover image for 3152. Special Array II

3152. Special Array II

Comments
4 min read
2981. Find Longest Special Substring That Occurs Thrice I
Cover image for 2981. Find Longest Special Substring That Occurs Thrice I

2981. Find Longest Special Substring That Occurs Thrice I

1
Comments
3 min read
2779. Maximum Beauty of an Array After Applying Operation
Cover image for 2779. Maximum Beauty of an Array After Applying Operation

2779. Maximum Beauty of an Array After Applying Operation

Comments
3 min read
2558. Take Gifts From the Richest Pile
Cover image for 2558. Take Gifts From the Richest Pile

2558. Take Gifts From the Richest Pile

Comments
4 min read
2593. Find Score of an Array After Marking All Elements
Cover image for 2593. Find Score of an Array After Marking All Elements

2593. Find Score of an Array After Marking All Elements

1
Comments
3 min read
2762. Continuous Subarrays
Cover image for 2762. Continuous Subarrays

2762. Continuous Subarrays

Comments
3 min read
1792. Maximum Average Pass Ratio
Cover image for 1792. Maximum Average Pass Ratio

1792. Maximum Average Pass Ratio

Comments
4 min read
3264. Final Array State After K Multiplication Operations I
Cover image for 3264. Final Array State After K Multiplication Operations I

3264. Final Array State After K Multiplication Operations I

Comments
3 min read
2182. Construct String With Repeat Limit
Cover image for 2182. Construct String With Repeat Limit

2182. Construct String With Repeat Limit

1
Comments
4 min read
1475. Final Prices With a Special Discount in a Shop
Cover image for 1475. Final Prices With a Special Discount in a Shop

1475. Final Prices With a Special Discount in a Shop

1
Comments
4 min read
769. Max Chunks To Make Sorted
Cover image for 769. Max Chunks To Make Sorted

769. Max Chunks To Make Sorted

1
Comments
3 min read
2415. Reverse Odd Levels of Binary Tree
Cover image for 2415. Reverse Odd Levels of Binary Tree

2415. Reverse Odd Levels of Binary Tree

1
Comments
5 min read
2872. Maximum Number of K-Divisible Components
Cover image for 2872. Maximum Number of K-Divisible Components

2872. Maximum Number of K-Divisible Components

1
Comments
6 min read
2940. Find Building Where Alice and Bob Can Meet
Cover image for 2940. Find Building Where Alice and Bob Can Meet

2940. Find Building Where Alice and Bob Can Meet

1
Comments
6 min read
2471. Minimum Number of Operations to Sort a Binary Tree by Level
Cover image for 2471. Minimum Number of Operations to Sort a Binary Tree by Level

2471. Minimum Number of Operations to Sort a Binary Tree by Level

1
Comments
5 min read
3203. Find Minimum Diameter After Merging Two Trees
Cover image for 3203. Find Minimum Diameter After Merging Two Trees

3203. Find Minimum Diameter After Merging Two Trees

1
Comments
5 min read
515. Find Largest Value in Each Tree Row
Cover image for 515. Find Largest Value in Each Tree Row

515. Find Largest Value in Each Tree Row

1
Comments
3 min read
494. Target Sum
Cover image for 494. Target Sum

494. Target Sum

1
Comments
3 min read
1014. Best Sightseeing Pair
Cover image for 1014. Best Sightseeing Pair

1014. Best Sightseeing Pair

1
Comments
2 min read
689. Maximum Sum of 3 Non-Overlapping Subarrays
Cover image for 689. Maximum Sum of 3 Non-Overlapping Subarrays

689. Maximum Sum of 3 Non-Overlapping Subarrays

1
Comments
3 min read
1639. Number of Ways to Form a Target String Given a Dictionary
Cover image for 1639. Number of Ways to Form a Target String Given a Dictionary

1639. Number of Ways to Form a Target String Given a Dictionary

1
Comments
5 min read
2466. Count Ways To Build Good Strings
Cover image for 2466. Count Ways To Build Good Strings

2466. Count Ways To Build Good Strings

1
Comments
3 min read
983. Minimum Cost For Tickets
Cover image for 983. Minimum Cost For Tickets

983. Minimum Cost For Tickets

1
Comments
5 min read
1422. Maximum Score After Splitting a String
Cover image for 1422. Maximum Score After Splitting a String

1422. Maximum Score After Splitting a String

1
Comments
3 min read
2559. Count Vowel Strings in Ranges
Cover image for 2559. Count Vowel Strings in Ranges

2559. Count Vowel Strings in Ranges

1
Comments
3 min read
2270. Number of Ways to Split Array
Cover image for 2270. Number of Ways to Split Array

2270. Number of Ways to Split Array

1
Comments
3 min read
1930. Unique Length-3 Palindromic Subsequences
Cover image for 1930. Unique Length-3 Palindromic Subsequences

1930. Unique Length-3 Palindromic Subsequences

1
Comments
3 min read
2381. Shifting Letters II
Cover image for 2381. Shifting Letters II

2381. Shifting Letters II

2
Comments
4 min read
1769. Minimum Number of Operations to Move All Balls to Each Box
Cover image for 1769. Minimum Number of Operations to Move All Balls to Each Box

1769. Minimum Number of Operations to Move All Balls to Each Box

1
Comments
4 min read
1408. String Matching in an Array
Cover image for 1408. String Matching in an Array

1408. String Matching in an Array

2
Comments
3 min read
3042. Count Prefix and Suffix Pairs I
Cover image for 3042. Count Prefix and Suffix Pairs I

3042. Count Prefix and Suffix Pairs I

1
Comments
3 min read
2185. Counting Words With a Given Prefix
Cover image for 2185. Counting Words With a Given Prefix

2185. Counting Words With a Given Prefix

1
Comments
2 min read
916. Word Subsets
Cover image for 916. Word Subsets

916. Word Subsets

2
Comments
3 min read
1400. Construct K Palindrome Strings
Cover image for 1400. Construct K Palindrome Strings

1400. Construct K Palindrome Strings

Comments
3 min read
2116. Check if a Parentheses String Can Be Valid
Cover image for 2116. Check if a Parentheses String Can Be Valid

2116. Check if a Parentheses String Can Be Valid

Comments
4 min read
3223. Minimum Length of String After Operations
Cover image for 3223. Minimum Length of String After Operations

3223. Minimum Length of String After Operations

Comments
3 min read
2657. Find the Prefix Common Array of Two Arrays
Cover image for 2657. Find the Prefix Common Array of Two Arrays

2657. Find the Prefix Common Array of Two Arrays

Comments
4 min read
2429. Minimize XOR
Cover image for 2429. Minimize XOR

2429. Minimize XOR

Comments
3 min read
2683. Neighboring Bitwise XOR
Cover image for 2683. Neighboring Bitwise XOR

2683. Neighboring Bitwise XOR

Comments
3 min read
1368. Minimum Cost to Make at Least One Valid Path in a Grid
Cover image for 1368. Minimum Cost to Make at Least One Valid Path in a Grid

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

Comments
4 min read
407. Trapping Rain Water II
Cover image for 407. Trapping Rain Water II

407. Trapping Rain Water II

Comments
4 min read
2661. First Completely Painted Row or Column
Cover image for 2661. First Completely Painted Row or Column

2661. First Completely Painted Row or Column

Comments
4 min read
2017. Grid Game
Cover image for 2017. Grid Game

2017. Grid Game

1
Comments
4 min read
1765. Map of Highest Peak
Cover image for 1765. Map of Highest Peak

1765. Map of Highest Peak

Comments
12 min read
542. 01 Matrix
Cover image for 542. 01 Matrix

542. 01 Matrix

Comments
3 min read
1267. Count Servers that Communicate
Cover image for 1267. Count Servers that Communicate

1267. Count Servers that Communicate

Comments
3 min read
802. Find Eventual Safe States
Cover image for 802. Find Eventual Safe States

802. Find Eventual Safe States

Comments
4 min read
802. Find Eventual Safe States
Cover image for 802. Find Eventual Safe States

802. Find Eventual Safe States

Comments
4 min read
2948. Make Lexicographically Smallest Array by Swapping Elements
Cover image for 2948. Make Lexicographically Smallest Array by Swapping Elements

2948. Make Lexicographically Smallest Array by Swapping Elements

1
Comments
5 min read
2127. Maximum Employees to Be Invited to a Meeting
Cover image for 2127. Maximum Employees to Be Invited to a Meeting

2127. Maximum Employees to Be Invited to a Meeting

Comments
4 min read
2127. Maximum Employees to Be Invited to a Meeting
Cover image for 2127. Maximum Employees to Be Invited to a Meeting

2127. Maximum Employees to Be Invited to a Meeting

1
Comments
4 min read
1462. Course Schedule IV
Cover image for 1462. Course Schedule IV

1462. Course Schedule IV

Comments
4 min read
2658. Maximum Number of Fish in a Grid
Cover image for 2658. Maximum Number of Fish in a Grid

2658. Maximum Number of Fish in a Grid

Comments
4 min read
684. Redundant Connection
Cover image for 684. Redundant Connection

684. Redundant Connection

Comments
4 min read
2493. Divide Nodes Into the Maximum Number of Groups
Cover image for 2493. Divide Nodes Into the Maximum Number of Groups

2493. Divide Nodes Into the Maximum Number of Groups

Comments
5 min read
827. Making A Large Island
Cover image for 827. Making A Large Island

827. Making A Large Island

Comments
3 min read
3151. Special Array I
Cover image for 3151. Special Array I

3151. Special Array I

Comments
2 min read
1752. Check if Array Is Sorted and Rotated
Cover image for 1752. Check if Array Is Sorted and Rotated

1752. Check if Array Is Sorted and Rotated

Comments
3 min read
3105. Longest Strictly Increasing or Strictly Decreasing Subarray
Cover image for 3105. Longest Strictly Increasing or Strictly Decreasing Subarray

3105. Longest Strictly Increasing or Strictly Decreasing Subarray

Comments
3 min read
1800. Maximum Ascending Subarray Sum
Cover image for 1800. Maximum Ascending Subarray Sum

1800. Maximum Ascending Subarray Sum

Comments
3 min read
1790. Check if One String Swap Can Make Strings Equal
Cover image for 1790. Check if One String Swap Can Make Strings Equal

1790. Check if One String Swap Can Make Strings Equal

Comments
3 min read
1726. Tuple with Same Product
Cover image for 1726. Tuple with Same Product

1726. Tuple with Same Product

Comments 1
3 min read
3160. Find the Number of Distinct Colors Among the Balls
Cover image for 3160. Find the Number of Distinct Colors Among the Balls

3160. Find the Number of Distinct Colors Among the Balls

Comments
4 min read
2349. Design a Number Container System
Cover image for 2349. Design a Number Container System

2349. Design a Number Container System

Comments 2
4 min read
2364. Count Number of Bad Pairs
Cover image for 2364. Count Number of Bad Pairs

2364. Count Number of Bad Pairs

Comments
3 min read
3174. Clear Digits
Cover image for 3174. Clear Digits

3174. Clear Digits

Comments
3 min read
1910. Remove All Occurrences of a Substring
Cover image for 1910. Remove All Occurrences of a Substring

1910. Remove All Occurrences of a Substring

2
Comments
3 min read
2342. Max Sum of a Pair With Equal Sum of Digits
Cover image for 2342. Max Sum of a Pair With Equal Sum of Digits

2342. Max Sum of a Pair With Equal Sum of Digits

Comments
3 min read
1352. Product of the Last K Numbers
Cover image for 1352. Product of the Last K Numbers

1352. Product of the Last K Numbers

Comments
4 min read
2698. Find the Punishment Number of an Integer
Cover image for 2698. Find the Punishment Number of an Integer

2698. Find the Punishment Number of an Integer

Comments
3 min read
1718. Construct the Lexicographically Largest Valid Sequence
Cover image for 1718. Construct the Lexicographically Largest Valid Sequence

1718. Construct the Lexicographically Largest Valid Sequence

Comments
3 min read
1079. Letter Tile Possibilities
Cover image for 1079. Letter Tile Possibilities

1079. Letter Tile Possibilities

Comments
3 min read
2375. Construct Smallest Number From DI String
Cover image for 2375. Construct Smallest Number From DI String

2375. Construct Smallest Number From DI String

Comments
3 min read
1415. The k-th Lexicographical String of All Happy Strings of Length n
Cover image for 1415. The k-th Lexicographical String of All Happy Strings of Length n

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

Comments
3 min read
1980. Find Unique Binary String
Cover image for 1980. Find Unique Binary String

1980. Find Unique Binary String

Comments
3 min read
1261. Find Elements in a Contaminated Binary Tree
Cover image for 1261. Find Elements in a Contaminated Binary Tree

1261. Find Elements in a Contaminated Binary Tree

Comments
4 min read
1028. Recover a Tree From Preorder Traversal
Cover image for 1028. Recover a Tree From Preorder Traversal

1028. Recover a Tree From Preorder Traversal

Comments
3 min read
889. Construct Binary Tree from Preorder and Postorder Traversal
Cover image for 889. Construct Binary Tree from Preorder and Postorder Traversal

889. Construct Binary Tree from Preorder and Postorder Traversal

1
Comments
3 min read
2467. Most Profitable Path in a Tree
Cover image for 2467. Most Profitable Path in a Tree

2467. Most Profitable Path in a Tree

Comments
5 min read
1524. Number of Sub-arrays With Odd Sum
Cover image for 1524. Number of Sub-arrays With Odd Sum

1524. Number of Sub-arrays With Odd Sum

Comments
3 min read
1749. Maximum Absolute Sum of Any Subarray
Cover image for 1749. Maximum Absolute Sum of Any Subarray

1749. Maximum Absolute Sum of Any Subarray

Comments
3 min read
873. Length of Longest Fibonacci Subsequence
Cover image for 873. Length of Longest Fibonacci Subsequence

873. Length of Longest Fibonacci Subsequence

Comments
3 min read
1092. Shortest Common Supersequence
Cover image for 1092. Shortest Common Supersequence

1092. Shortest Common Supersequence

Comments
3 min read
2460. Apply Operations to an Array
Cover image for 2460. Apply Operations to an Array

2460. Apply Operations to an Array

Comments
3 min read
2161. Partition Array According to Given Pivot
Cover image for 2161. Partition Array According to Given Pivot

2161. Partition Array According to Given Pivot

Comments
4 min read
1780. Check if Number is a Sum of Powers of Three
Cover image for 1780. Check if Number is a Sum of Powers of Three

1780. Check if Number is a Sum of Powers of Three

Comments 1
3 min read
2579. Count Total Number of Colored Cells
Cover image for 2579. Count Total Number of Colored Cells

2579. Count Total Number of Colored Cells

Comments
3 min read
2965. Find Missing and Repeated Values
Cover image for 2965. Find Missing and Repeated Values

2965. Find Missing and Repeated Values

Comments
3 min read
2523. Closest Prime Numbers in Range
Cover image for 2523. Closest Prime Numbers in Range

2523. Closest Prime Numbers in Range

Comments
3 min read
2379. Minimum Recolors to Get K Consecutive Black Blocks
Cover image for 2379. Minimum Recolors to Get K Consecutive Black Blocks

2379. Minimum Recolors to Get K Consecutive Black Blocks

Comments
3 min read
3208. Alternating Groups II
Cover image for 3208. Alternating Groups II

3208. Alternating Groups II

Comments
4 min read
3306. Count of Substrings Containing Every Vowel and K Consonants II
Cover image for 3306. Count of Substrings Containing Every Vowel and K Consonants II

3306. Count of Substrings Containing Every Vowel and K Consonants II

Comments
4 min read
1358. Number of Substrings Containing All Three Characters
Cover image for 1358. Number of Substrings Containing All Three Characters

1358. Number of Substrings Containing All Three Characters

Comments
3 min read
2529. Maximum Count of Positive Integer and Negative Integer
Cover image for 2529. Maximum Count of Positive Integer and Negative Integer

2529. Maximum Count of Positive Integer and Negative Integer

Comments
3 min read
3356. Zero Array Transformation II
Cover image for 3356. Zero Array Transformation II

3356. Zero Array Transformation II

Comments
4 min read
2226. Maximum Candies Allocated to K Children
Cover image for 2226. Maximum Candies Allocated to K Children

2226. Maximum Candies Allocated to K Children

Comments
3 min read
2560. House Robber IV
Cover image for 2560. House Robber IV

2560. House Robber IV

Comments
4 min read
2594. Minimum Time to Repair Cars
Cover image for 2594. Minimum Time to Repair Cars

2594. Minimum Time to Repair Cars

Comments
3 min read
2206. Divide Array Into Equal Pairs
Cover image for 2206. Divide Array Into Equal Pairs

2206. Divide Array Into Equal Pairs

Comments
3 min read
2401. Longest Nice Subarray
Cover image for 2401. Longest Nice Subarray

2401. Longest Nice Subarray

Comments
3 min read
3191. Minimum Operations to Make Binary Array Elements Equal to One I
Cover image for 3191. Minimum Operations to Make Binary Array Elements Equal to One I

3191. Minimum Operations to Make Binary Array Elements Equal to One I

Comments
3 min read
3108. Minimum Cost Walk in Weighted Graph
Cover image for 3108. Minimum Cost Walk in Weighted Graph

3108. Minimum Cost Walk in Weighted Graph

Comments
5 min read
2115. Find All Possible Recipes from Given Supplies
Cover image for 2115. Find All Possible Recipes from Given Supplies

2115. Find All Possible Recipes from Given Supplies

Comments
4 min read
2685. Count the Number of Complete Components
Cover image for 2685. Count the Number of Complete Components

2685. Count the Number of Complete Components

Comments
4 min read
1976. Number of Ways to Arrive at Destination
Cover image for 1976. Number of Ways to Arrive at Destination

1976. Number of Ways to Arrive at Destination

Comments
4 min read
3169. Count Days Without Meetings
Cover image for 3169. Count Days Without Meetings

3169. Count Days Without Meetings

Comments
3 min read
3394. Check if Grid can be Cut into Sections
Cover image for 3394. Check if Grid can be Cut into Sections

3394. Check if Grid can be Cut into Sections

Comments
4 min read
2033. Minimum Operations to Make a Uni-Value Grid
Cover image for 2033. Minimum Operations to Make a Uni-Value Grid

2033. Minimum Operations to Make a Uni-Value Grid

Comments
5 min read
2780. Minimum Index of a Valid Split
Cover image for 2780. Minimum Index of a Valid Split

2780. Minimum Index of a Valid Split

Comments
4 min read
2503. Maximum Number of Points From Grid Queries
Cover image for 2503. Maximum Number of Points From Grid Queries

2503. Maximum Number of Points From Grid Queries

Comments
3 min read
2818. Apply Operations to Maximize Score
Cover image for 2818. Apply Operations to Maximize Score

2818. Apply Operations to Maximize Score

Comments
5 min read
763. Partition Labels
Cover image for 763. Partition Labels

763. Partition Labels

Comments
3 min read
2551. Put Marbles in Bags
Cover image for 2551. Put Marbles in Bags

2551. Put Marbles in Bags

Comments
3 min read
2140. Solving Questions With Brainpower
Cover image for 2140. Solving Questions With Brainpower

2140. Solving Questions With Brainpower

Comments
4 min read
2873. Maximum Value of an Ordered Triplet I
Cover image for 2873. Maximum Value of an Ordered Triplet I

2873. Maximum Value of an Ordered Triplet I

Comments
3 min read
2874. Maximum Value of an Ordered Triplet II
Cover image for 2874. Maximum Value of an Ordered Triplet II

2874. Maximum Value of an Ordered Triplet II

Comments
3 min read
1123. Lowest Common Ancestor of Deepest Leaves
Cover image for 1123. Lowest Common Ancestor of Deepest Leaves

1123. Lowest Common Ancestor of Deepest Leaves

Comments
4 min read
368. Largest Divisible Subset
Cover image for 368. Largest Divisible Subset

368. Largest Divisible Subset

Comments
3 min read
416. Partition Equal Subset Sum
Cover image for 416. Partition Equal Subset Sum

416. Partition Equal Subset Sum

Comments
3 min read
3396. Minimum Number of Operations to Make Elements in Array Distinct
Cover image for 3396. Minimum Number of Operations to Make Elements in Array Distinct

3396. Minimum Number of Operations to Make Elements in Array Distinct

Comments
3 min read
3375. Minimum Operations to Make Array Values Equal to K
Cover image for 3375. Minimum Operations to Make Array Values Equal to K

3375. Minimum Operations to Make Array Values Equal to K

Comments
3 min read
2999. Count the Number of Powerful Integers
Cover image for 2999. Count the Number of Powerful Integers

2999. Count the Number of Powerful Integers

Comments
4 min read
2843. Count Symmetric Integers
Cover image for 2843. Count Symmetric Integers

2843. Count Symmetric Integers

Comments
3 min read
3272. Find the Count of Good Integers
Cover image for 3272. Find the Count of Good Integers

3272. Find the Count of Good Integers

Comments
3 min read
1922. Count Good Numbers
Cover image for 1922. Count Good Numbers

1922. Count Good Numbers

Comments
3 min read
1534. Count Good Triplets
Cover image for 1534. Count Good Triplets

1534. Count Good Triplets

Comments
3 min read
2179. Count Good Triplets in an Array
Cover image for 2179. Count Good Triplets in an Array

2179. Count Good Triplets in an Array

Comments
4 min read
2537. Count the Number of Good Subarrays
Cover image for 2537. Count the Number of Good Subarrays

2537. Count the Number of Good Subarrays

1
Comments
3 min read
2176. Count Equal and Divisible Pairs in an Array
Cover image for 2176. Count Equal and Divisible Pairs in an Array

2176. Count Equal and Divisible Pairs in an Array

Comments
3 min read
38. Count and Say
Cover image for 38. Count and Say

38. Count and Say

Comments
3 min read
781. Rabbits in Forest
Cover image for 781. Rabbits in Forest

781. Rabbits in Forest

Comments
3 min read
2145. Count the Hidden Sequences
Cover image for 2145. Count the Hidden Sequences

2145. Count the Hidden Sequences

Comments
4 min read
2338. Count the Number of Ideal Arrays
Cover image for 2338. Count the Number of Ideal Arrays

2338. Count the Number of Ideal Arrays

1
Comments
4 min read
1399. Count Largest Group
Cover image for 1399. Count Largest Group

1399. Count Largest Group

Comments
2 min read
2799. Count Complete Subarrays in an Array
Cover image for 2799. Count Complete Subarrays in an Array

2799. Count Complete Subarrays in an Array

Comments
3 min read
2845. Count of Interesting Subarrays
Cover image for 2845. Count of Interesting Subarrays

2845. Count of Interesting Subarrays

Comments
4 min read
2444. Count Subarrays With Fixed Bounds
Cover image for 2444. Count Subarrays With Fixed Bounds

2444. Count Subarrays With Fixed Bounds

Comments
3 min read
3392. Count Subarrays of Length Three With a Condition
Cover image for 3392. Count Subarrays of Length Three With a Condition

3392. Count Subarrays of Length Three With a Condition

Comments
2 min read
2302. Count Subarrays With Score Less Than K
Cover image for 2302. Count Subarrays With Score Less Than K

2302. Count Subarrays With Score Less Than K

Comments
4 min read
2962. Count Subarrays Where Max Element Appears at Least K Times
Cover image for 2962. Count Subarrays Where Max Element Appears at Least K Times

2962. Count Subarrays Where Max Element Appears at Least K Times

Comments
3 min read
1295. Find Numbers with Even Number of Digits
Cover image for 1295. Find Numbers with Even Number of Digits

1295. Find Numbers with Even Number of Digits

Comments
2 min read
2071. Maximum Number of Tasks You Can Assign
Cover image for 2071. Maximum Number of Tasks You Can Assign

2071. Maximum Number of Tasks You Can Assign

Comments
5 min read
838. Push Dominoes
Cover image for 838. Push Dominoes

838. Push Dominoes

Comments
3 min read
1007. Minimum Domino Rotations For Equal Row
Cover image for 1007. Minimum Domino Rotations For Equal Row

1007. Minimum Domino Rotations For Equal Row

Comments
3 min read
1128. Number of Equivalent Domino Pairs
Cover image for 1128. Number of Equivalent Domino Pairs

1128. Number of Equivalent Domino Pairs

Comments
3 min read
790. Domino and Tromino Tiling
Cover image for 790. Domino and Tromino Tiling

790. Domino and Tromino Tiling

1
Comments
3 min read
1920. Build Array from Permutation
Cover image for 1920. Build Array from Permutation

1920. Build Array from Permutation

Comments
3 min read
3341. Find Minimum Time to Reach Last Room I
Cover image for 3341. Find Minimum Time to Reach Last Room I

3341. Find Minimum Time to Reach Last Room I

Comments
4 min read
3342. Find Minimum Time to Reach Last Room II
Cover image for 3342. Find Minimum Time to Reach Last Room II

3342. Find Minimum Time to Reach Last Room II

Comments
4 min read
3343. Count Number of Balanced Permutations
Cover image for 3343. Count Number of Balanced Permutations

3343. Count Number of Balanced Permutations

Comments
3 min read
2918. Minimum Equal Sum of Two Arrays After Replacing Zeros

2918. Minimum Equal Sum of Two Arrays After Replacing Zeros

Comments
3 min read
2094. Finding 3-Digit Even Numbers
Cover image for 2094. Finding 3-Digit Even Numbers

2094. Finding 3-Digit Even Numbers

Comments
3 min read
3335. Total Characters in String After Transformations I
Cover image for 3335. Total Characters in String After Transformations I

3335. Total Characters in String After Transformations I

Comments
3 min read
3337. Total Characters in String After Transformations II
Cover image for 3337. Total Characters in String After Transformations II

3337. Total Characters in String After Transformations II

Comments
4 min read
2900. Longest Unequal Adjacent Groups Subsequence I
Cover image for 2900. Longest Unequal Adjacent Groups Subsequence I

2900. Longest Unequal Adjacent Groups Subsequence I

Comments
4 min read
2901. Longest Unequal Adjacent Groups Subsequence II
Cover image for 2901. Longest Unequal Adjacent Groups Subsequence II

2901. Longest Unequal Adjacent Groups Subsequence II

Comments
5 min read
1931. Painting a Grid With Three Different Colors
Cover image for 1931. Painting a Grid With Three Different Colors

1931. Painting a Grid With Three Different Colors

1
Comments
3 min read
3024. Type of Triangle
Cover image for 3024. Type of Triangle

3024. Type of Triangle

Comments
3 min read
3355. Zero Array Transformation I
Cover image for 3355. Zero Array Transformation I

3355. Zero Array Transformation I

Comments
3 min read
73. Set Matrix Zeroes
Cover image for 73. Set Matrix Zeroes

73. Set Matrix Zeroes

Comments
4 min read
3362. Zero Array Transformation III
Cover image for 3362. Zero Array Transformation III

3362. Zero Array Transformation III

Comments
5 min read
2942. Find Words Containing Character
Cover image for 2942. Find Words Containing Character

2942. Find Words Containing Character

Comments
3 min read
2131. Longest Palindrome by Concatenating Two Letter Words
Cover image for 2131. Longest Palindrome by Concatenating Two Letter Words

2131. Longest Palindrome by Concatenating Two Letter Words

Comments
3 min read
1857. Largest Color Value in a Directed Graph
Cover image for 1857. Largest Color Value in a Directed Graph

1857. Largest Color Value in a Directed Graph

1
Comments
4 min read
2894. Divisible and Non-divisible Sums Difference
Cover image for 2894. Divisible and Non-divisible Sums Difference

2894. Divisible and Non-divisible Sums Difference

Comments
3 min read
3372. Maximize the Number of Target Nodes After Connecting Trees I
Cover image for 3372. Maximize the Number of Target Nodes After Connecting Trees I

3372. Maximize the Number of Target Nodes After Connecting Trees I

Comments
5 min read
3373. Maximize the Number of Target Nodes After Connecting Trees II
Cover image for 3373. Maximize the Number of Target Nodes After Connecting Trees II

3373. Maximize the Number of Target Nodes After Connecting Trees II

Comments
5 min read
2359. Find Closest Node to Given Two Nodes
Cover image for 2359. Find Closest Node to Given Two Nodes

2359. Find Closest Node to Given Two Nodes

Comments
4 min read
909. Snakes and Ladders
Cover image for 909. Snakes and Ladders

909. Snakes and Ladders

Comments
5 min read
2929. Distribute Candies Among Children II
Cover image for 2929. Distribute Candies Among Children II

2929. Distribute Candies Among Children II

1
Comments
4 min read
135. Candy
Cover image for 135. Candy

135. Candy

Comments
3 min read
1298. Maximum Candies You Can Get from Boxes
Cover image for 1298. Maximum Candies You Can Get from Boxes

1298. Maximum Candies You Can Get from Boxes

Comments
4 min read
3403. Find the Lexicographically Largest String From the Box I
Cover image for 3403. Find the Lexicographically Largest String From the Box I

3403. Find the Lexicographically Largest String From the Box I

Comments
4 min read
1061. Lexicographically Smallest Equivalent String
Cover image for 1061. Lexicographically Smallest Equivalent String

1061. Lexicographically Smallest Equivalent String

Comments
4 min read
2434. Using a Robot to Print the Lexicographically Smallest String
Cover image for 2434. Using a Robot to Print the Lexicographically Smallest String

2434. Using a Robot to Print the Lexicographically Smallest String

Comments
4 min read
3170. Lexicographically Minimum String After Removing Stars
Cover image for 3170. Lexicographically Minimum String After Removing Stars

3170. Lexicographically Minimum String After Removing Stars

Comments 2
4 min read
3442. Maximum Difference Between Even and Odd Frequency I
Cover image for 3442. Maximum Difference Between Even and Odd Frequency I

3442. Maximum Difference Between Even and Odd Frequency I

Comments
3 min read
3445. Maximum Difference Between Even and Odd Frequency II
Cover image for 3445. Maximum Difference Between Even and Odd Frequency II

3445. Maximum Difference Between Even and Odd Frequency II

Comments
4 min read
3423. Maximum Difference Between Adjacent Elements in a Circular Array
Cover image for 3423. Maximum Difference Between Adjacent Elements in a Circular Array

3423. Maximum Difference Between Adjacent Elements in a Circular Array

Comments
3 min read
2616. Minimize the Maximum Difference of Pairs
Cover image for 2616. Minimize the Maximum Difference of Pairs

2616. Minimize the Maximum Difference of Pairs

Comments
4 min read
2566. Maximum Difference by Remapping a Digit
Cover image for 2566. Maximum Difference by Remapping a Digit

2566. Maximum Difference by Remapping a Digit

Comments
3 min read
2016. Maximum Difference Between Increasing Elements
Cover image for 2016. Maximum Difference Between Increasing Elements

2016. Maximum Difference Between Increasing Elements

Comments
3 min read
3405. Count the Number of Arrays with K Matching Adjacent Elements
Cover image for 3405. Count the Number of Arrays with K Matching Adjacent Elements

3405. Count the Number of Arrays with K Matching Adjacent Elements

Comments 1
4 min read
2966. Divide Array Into Arrays With Max Difference
Cover image for 2966. Divide Array Into Arrays With Max Difference

2966. Divide Array Into Arrays With Max Difference

Comments
4 min read
2294. Partition Array Such That Maximum Difference Is K
Cover image for 2294. Partition Array Such That Maximum Difference Is K

2294. Partition Array Such That Maximum Difference Is K

Comments
4 min read
3443. Maximum Manhattan Distance After K Changes
Cover image for 3443. Maximum Manhattan Distance After K Changes

3443. Maximum Manhattan Distance After K Changes

Comments
4 min read
3085. Minimum Deletions to Make String K-Special
Cover image for 3085. Minimum Deletions to Make String K-Special

3085. Minimum Deletions to Make String K-Special

Comments
4 min read
2138. Divide a String Into Groups of Size k
Cover image for 2138. Divide a String Into Groups of Size k

2138. Divide a String Into Groups of Size k

1
Comments
4 min read
2081. Sum of k-Mirror Numbers
Cover image for 2081. Sum of k-Mirror Numbers

2081. Sum of k-Mirror Numbers

Comments
4 min read
2200. Find All K-Distant Indices in an Array
Cover image for 2200. Find All K-Distant Indices in an Array

2200. Find All K-Distant Indices in an Array

Comments
4 min read
2040. Kth Smallest Product of Two Sorted Arrays
Cover image for 2040. Kth Smallest Product of Two Sorted Arrays

2040. Kth Smallest Product of Two Sorted Arrays

Comments
4 min read
2311. Longest Binary Subsequence Less Than or Equal to K
Cover image for 2311. Longest Binary Subsequence Less Than or Equal to K

2311. Longest Binary Subsequence Less Than or Equal to K

Comments
4 min read
2014. Longest Subsequence Repeated k Times
Cover image for 2014. Longest Subsequence Repeated k Times

2014. Longest Subsequence Repeated k Times

Comments
4 min read
2099. Find Subsequence of Length K With the Largest Sum
Cover image for 2099. Find Subsequence of Length K With the Largest Sum

2099. Find Subsequence of Length K With the Largest Sum

Comments
4 min read
1498. Number of Subsequences That Satisfy the Given Sum Condition
Cover image for 1498. Number of Subsequences That Satisfy the Given Sum Condition

1498. Number of Subsequences That Satisfy the Given Sum Condition

Comments
4 min read
594. Longest Harmonious Subsequence
Cover image for 594. Longest Harmonious Subsequence

594. Longest Harmonious Subsequence

Comments
3 min read
3330. Find the Original Typed String I
Cover image for 3330. Find the Original Typed String I

3330. Find the Original Typed String I

Comments
3 min read
3333. Find the Original Typed String II
Cover image for 3333. Find the Original Typed String II

3333. Find the Original Typed String II

Comments
4 min read
3304. Find the K-th Character in String Game I
Cover image for 3304. Find the K-th Character in String Game I

3304. Find the K-th Character in String Game I

Comments
3 min read
3307. Find the K-th Character in String Game II
Cover image for 3307. Find the K-th Character in String Game II

3307. Find the K-th Character in String Game II

Comments
5 min read
1394. Find Lucky Integer in an Array
Cover image for 1394. Find Lucky Integer in an Array

1394. Find Lucky Integer in an Array

Comments
3 min read
1865. Finding Pairs With a Certain Sum
Cover image for 1865. Finding Pairs With a Certain Sum

1865. Finding Pairs With a Certain Sum

Comments
4 min read
1353. Maximum Number of Events That Can Be Attended
Cover image for 1353. Maximum Number of Events That Can Be Attended

1353. Maximum Number of Events That Can Be Attended

1
Comments
4 min read
1751. Maximum Number of Events That Can Be Attended II
Cover image for 1751. Maximum Number of Events That Can Be Attended II

1751. Maximum Number of Events That Can Be Attended II

Comments
5 min read
3439. Reschedule Meetings for Maximum Free Time I
Cover image for 3439. Reschedule Meetings for Maximum Free Time I

3439. Reschedule Meetings for Maximum Free Time I

Comments
4 min read
2402. Meeting Rooms III
Cover image for 2402. Meeting Rooms III

2402. Meeting Rooms III

Comments
5 min read
1900. The Earliest and Latest Rounds Where Players Compete
Cover image for 1900. The Earliest and Latest Rounds Where Players Compete

1900. The Earliest and Latest Rounds Where Players Compete

Comments
4 min read
2410. Maximum Matching of Players With Trainers
Cover image for 2410. Maximum Matching of Players With Trainers

2410. Maximum Matching of Players With Trainers

1
Comments
4 min read
1290. Convert Binary Number in a Linked List to Integer
Cover image for 1290. Convert Binary Number in a Linked List to Integer

1290. Convert Binary Number in a Linked List to Integer

Comments
3 min read
3136. Valid Word
Cover image for 3136. Valid Word

3136. Valid Word

Comments
3 min read
3201. Find the Maximum Length of Valid Subsequence I
Cover image for 3201. Find the Maximum Length of Valid Subsequence I

3201. Find the Maximum Length of Valid Subsequence I

1
Comments
4 min read
3202. Find the Maximum Length of Valid Subsequence II
Cover image for 3202. Find the Maximum Length of Valid Subsequence II

3202. Find the Maximum Length of Valid Subsequence II

Comments
4 min read
2163. Minimum Difference in Sums After Removal of Elements
Cover image for 2163. Minimum Difference in Sums After Removal of Elements

2163. Minimum Difference in Sums After Removal of Elements

Comments
5 min read
1948. Delete Duplicate Folders in System
Cover image for 1948. Delete Duplicate Folders in System

1948. Delete Duplicate Folders in System

Comments
5 min read
1695. Maximum Erasure Value
Cover image for 1695. Maximum Erasure Value

1695. Maximum Erasure Value

Comments
3 min read
2322. Minimum Score After Removals on a Tree
Cover image for 2322. Minimum Score After Removals on a Tree

2322. Minimum Score After Removals on a Tree

Comments
5 min read
3487. Maximum Unique Subarray Sum After Deletion
Cover image for 3487. Maximum Unique Subarray Sum After Deletion

3487. Maximum Unique Subarray Sum After Deletion

Comments
3 min read
3480. Maximize Subarrays After Removing One Conflicting Pair
Cover image for 3480. Maximize Subarrays After Removing One Conflicting Pair

3480. Maximize Subarrays After Removing One Conflicting Pair

Comments
4 min read
2210. Count Hills and Valleys in an Array
Cover image for 2210. Count Hills and Valleys in an Array

2210. Count Hills and Valleys in an Array

Comments
4 min read
2411. Smallest Subarrays With Maximum Bitwise OR
Cover image for 2411. Smallest Subarrays With Maximum Bitwise OR

2411. Smallest Subarrays With Maximum Bitwise OR

Comments
5 min read
898. Bitwise ORs of Subarrays
Cover image for 898. Bitwise ORs of Subarrays

898. Bitwise ORs of Subarrays

Comments
3 min read
118. Pascal's Triangle
Cover image for 118. Pascal's Triangle

118. Pascal's Triangle

Comments
2 min read
2561. Rearranging Fruits
Cover image for 2561. Rearranging Fruits

2561. Rearranging Fruits

Comments
4 min read
2106. Maximum Fruits Harvested After at Most K Steps
Cover image for 2106. Maximum Fruits Harvested After at Most K Steps

2106. Maximum Fruits Harvested After at Most K Steps

Comments
5 min read
904. Fruit Into Baskets
Cover image for 904. Fruit Into Baskets

904. Fruit Into Baskets

Comments
4 min read
3477. Fruits Into Baskets II
Cover image for 3477. Fruits Into Baskets II

3477. Fruits Into Baskets II

Comments
4 min read
3479. Fruits Into Baskets III
Cover image for 3479. Fruits Into Baskets III

3479. Fruits Into Baskets III

Comments
4 min read
3363. Find the Maximum Number of Fruits Collected
Cover image for 3363. Find the Maximum Number of Fruits Collected

3363. Find the Maximum Number of Fruits Collected

Comments
5 min read
808. Soup Servings
Cover image for 808. Soup Servings

808. Soup Servings

Comments
5 min read
231. Power of Two
Cover image for 231. Power of Two

231. Power of Two

Comments
3 min read
869. Reordered Power of 2
Cover image for 869. Reordered Power of 2

869. Reordered Power of 2

Comments
3 min read
2438. Range Product Queries of Powers
Cover image for 2438. Range Product Queries of Powers

2438. Range Product Queries of Powers

Comments
4 min read
2787. Ways to Express an Integer as Sum of Powers
Cover image for 2787. Ways to Express an Integer as Sum of Powers

2787. Ways to Express an Integer as Sum of Powers

Comments
4 min read
326. Power of Three
Cover image for 326. Power of Three

326. Power of Three

Comments
3 min read
2264. Largest 3-Same-Digit Number in String
Cover image for 2264. Largest 3-Same-Digit Number in String

2264. Largest 3-Same-Digit Number in String

Comments
3 min read
342. Power of Four
Cover image for 342. Power of Four

342. Power of Four

Comments
3 min read
1323. Maximum 69 Number
Cover image for 1323. Maximum 69 Number

1323. Maximum 69 Number

Comments
3 min read
837. New 21 Game
Cover image for 837. New 21 Game

837. New 21 Game

Comments
4 min read
679. 24 Game
Cover image for 679. 24 Game

679. 24 Game

Comments
3 min read
2348. Number of Zero-Filled Subarrays
Cover image for 2348. Number of Zero-Filled Subarrays

2348. Number of Zero-Filled Subarrays

Comments 1
3 min read
1504. Count Submatrices With All Ones
Cover image for 1504. Count Submatrices With All Ones

1504. Count Submatrices With All Ones

Comments
3 min read
3195. Find the Minimum Area to Cover All Ones I
Cover image for 3195. Find the Minimum Area to Cover All Ones I

3195. Find the Minimum Area to Cover All Ones I

Comments
3 min read
3197. Find the Minimum Area to Cover All Ones II
Cover image for 3197. Find the Minimum Area to Cover All Ones II

3197. Find the Minimum Area to Cover All Ones II

Comments
4 min read
1493. Longest Subarray of 1's After Deleting One Element
Cover image for 1493. Longest Subarray of 1's After Deleting One Element

1493. Longest Subarray of 1's After Deleting One Element

Comments
3 min read
498. Diagonal Traverse
Cover image for 498. Diagonal Traverse

498. Diagonal Traverse

Comments
3 min read
3000. Maximum Area of Longest Diagonal Rectangle
Cover image for 3000. Maximum Area of Longest Diagonal Rectangle

3000. Maximum Area of Longest Diagonal Rectangle

Comments
3 min read
3459. Length of Longest V-Shaped Diagonal Segment
Cover image for 3459. Length of Longest V-Shaped Diagonal Segment

3459. Length of Longest V-Shaped Diagonal Segment

Comments
5 min read
3446. Sort Matrix by Diagonals
Cover image for 3446. Sort Matrix by Diagonals

3446. Sort Matrix by Diagonals

Comments
3 min read
3021. Alice and Bob Playing Flower Game
Cover image for 3021. Alice and Bob Playing Flower Game

3021. Alice and Bob Playing Flower Game

Comments
3 min read
36. Valid Sudok
Cover image for 36. Valid Sudok

36. Valid Sudok

Comments
4 min read
37. Sudoku Solver
Cover image for 37. Sudoku Solver

37. Sudoku Solver

Comments
4 min read
3025. Find the Number of Ways to Place People I
Cover image for 3025. Find the Number of Ways to Place People I

3025. Find the Number of Ways to Place People I

Comments
4 min read
3027. Find the Number of Ways to Place People II
Cover image for 3027. Find the Number of Ways to Place People II

3027. Find the Number of Ways to Place People II

Comments
6 min read
3516. Find Closest Person
Cover image for 3516. Find Closest Person

3516. Find Closest Person

Comments
3 min read
2749. Minimum Operations to Make the Integer Zero
Cover image for 2749. Minimum Operations to Make the Integer Zero

2749. Minimum Operations to Make the Integer Zero

Comments
4 min read
3495. Minimum Operations to Make Array Elements Zero
Cover image for 3495. Minimum Operations to Make Array Elements Zero

3495. Minimum Operations to Make Array Elements Zero

Comments
4 min read
1304. Find N Unique Integers Sum up to Zero
Cover image for 1304. Find N Unique Integers Sum up to Zero

1304. Find N Unique Integers Sum up to Zero

Comments
3 min read
1317. Convert Integer to the Sum of Two No-Zero Integers
Cover image for 1317. Convert Integer to the Sum of Two No-Zero Integers

1317. Convert Integer to the Sum of Two No-Zero Integers

Comments
3 min read
2327. Number of People Aware of a Secret
Cover image for 2327. Number of People Aware of a Secret

2327. Number of People Aware of a Secret

Comments
4 min read
1733. Minimum Number of People to Teach
Cover image for 1733. Minimum Number of People to Teach

1733. Minimum Number of People to Teach

Comments
4 min read
2785. Sort Vowels in a String
Cover image for 2785. Sort Vowels in a String

2785. Sort Vowels in a String

Comments
3 min read
3227. Vowels Game in a String
Cover image for 3227. Vowels Game in a String

3227. Vowels Game in a String

Comments
3 min read
3541. Find Most Frequent Vowel and Consonant
Cover image for 3541. Find Most Frequent Vowel and Consonant

3541. Find Most Frequent Vowel and Consonant

Comments
3 min read