Skip to content

Muteages/LeetCodeDaily

Repository files navigation

LeetCode Daily Challenge

Coding excises with different languages C++, JavaScript, and now Python!

2025

February

27th, February - Length of Longest Fibonacci Subsequence

26th, February - Maximum Absolute Sum of Any Subarray

25th, February - Number of Subarrays with Odd Sum

22nd, February - Recover a Tree From Preorder Traversal

16th, February - Construct the Lexicographically Largest Valid Sequence

14th, February - Product of the Last K Numbers

13th, February - Minimum Operations to Exceed Threshold Value II

12th, February - Max Sum of a Pair with Equal Sum of Digits

11th, February - Remove All Occurrences of a Substring

10th, February - Clear Digits

9th, February - Count Number of Bad Pairs

8th, February - Design a Number Container System

7th, February - Find the Number of Distinct Colours Among the Balls

6th, February - Tuple with Same Product

5th, February - Check if One String Swap Can Make Strings Equal

4th, February - Maximum Ascending Subarray Sum

3rd, February - Longest Strictly Increasing or Strictly Decreasing Subarray

2nd, February - Check if Array is Sorted and Rotated

1st, February - Special Array

January

29th, January - Redundant Connection

28th, January - Maximum Number of Fish in A Grid

27th, January - Courses Schedule

26th, January - Maximum Employees to be Invited to A Meeting

25th, January - Make Lexicographically Smallest Array by Swapping Elements

24th, January - Find Eventual Safe States

23rd, January - Count Servers that Communicate

22nd, January - Map of Highest Peak

21st, January - Grid Game

20th, January - First Completely Painted Row or Column

17th, January - Neighbouring Bitwise XOR

16th, January - Bitwise XOR of All

15th, January - Minimise XOR

12th, January - Check if A parentheses String Can Be Valid

11th, January - Construct K Palindrome Strings

10th, January - Word Subsets

9th, January - Counting Words With a Given Prefix

8th, January - Count Prefix and Suffix Pairs

7th, January - String Matching in an Array

2024

December

20th, December - Reverse Odd Levels of Binary Tree

19th, December - Max Chunks To Make Sorted

18th, December - Final Prices with a Special Discount in a Shop

17th, December - Construct String with Repeat Limit

16th, December - Final Array State after K Multiplication Operations

12th, December - Take Gifts from the Richest Pile

10th, December - Find Longest Special Subtring that Occurs Thrice

9th, December - Special Array II

October

10th, October - Maximum Width Ramp

9th, October - Minimum Add to Make Parentheses Valid

8th, October - Max Dot Product of Two Subsequences

7th, October - Minimum String Length After Removing Substrings

6th, October - Sentence Similarity III

5th, October - Permutation in String

4th, October - Divide Players into Teams of Equal Skill

3rd, October - Make Sum Divisible by P

2nd, October - Rank Transform of an Array

1st, October - Check if Array Pairs are Divisible by K

September

30th, September - Design a Stack with Increment Operation

27th, September - My Calendar II

26th, September - My Calendar

25th, September - Sum of Prefix Scores of Strings

24th, September - Find the Length of the Longest Common Prefix

23rd, September - Extra Characters in a String

21st, September - Lexicographical Numbers

18th, September - Largest Number

17th, September - Uncommon Words from Two Sentences

16th, September - Minimum Time Difference

15th, September - Find the Longest Substring Containing Vowels in Even Counts

14th, September - Longest Subarray with Maximum Bitwise AND

13th, September - XOR Queries of a Subarray

12th, September - Count the Number of Consistent Strings

11th, September - Group the People Given the Group Size They Belong To

10th, September - Insert Greatest Common Divisors in Linked List

9th, September - Spiral Matrix IV

8th, September - Pascal's Triangle

7th, September - Linked List in Binary Tree

6th, September - Delete Nodes From Linked List Present in Array

5th, September - Find Missing Observations

4th, September - Walking Robot Simulation

3rd, September - Sum of Digits of String after Convert

2nd, September - Find the Student that will Replace the Chalk

1st, September - Convert 1D Array into 2D Array

August

31th, August - Path with Maximum Probability

29th, August - Most Stones Removed with Same Row or Column

28th, August - Count Sub Islands

27th, August - Path with Maximum Probability

26th, August - N-ary Tree Postorder Traversal

25th, August - Postorder Traversal

23rd, August - Fraction Addition and Subtraction

22nd, August - Number Complement

18th, August - Ugly Number II

16th, August - Maximum Distance in Arrays

15th, August - Lemonade Change

14th, August - Find Kth Smallest Pair Distance

12th, August - Kth Largest Element in a Stream

9th, August - Magic Squares in Grid

8th, August - Spiral Matrix III

7th, August - Integer to English Words

6th, August - Minimum Number of Pushes to Type Word

5th, August - Kth Distinct String In an Array

3rd, August - Make Two Arrays Equal by Reversing Subarrays

2nd, August - Minimum Swaps to Group All 1's Together II

1st, August - Number of Senior Citizens

July

30th, July - Minimum Deletions to Make String Balanced

29th, July - Count Number of Teams

27th, July - Minimum Cost to Convert String I

26th, July - Find the City with the Smallest Number of Neighbours at a Threshold Distance

25th, July - Sort an Array

24th, July - Sort the Jumbled Numbers

23rd, July - Sort Array by Increasing Frequency

22nd, July - Sort the People

21st, July - Build a Matrix with Conditions

20th, July - Find Valid Matrix Given Row and Column Sums

19th, July - Lucky Numbers in a Matrix

17th, July - Delete Nodes and Return Forest

16th, July - Step-by-Step Directions from a Binary Tree Node to Another

15th, July - Create Binary Tree from Descriptions

12th, July - Maximum Score from Removing Substrings

10th, July - Crawler Log Folder

9th, July - Average Waiting Time

8th, July - Find the Winner of the Circular Game

7th, July - Water Bottles

6th, July - Pass the Pillow

5th, July - Find the Minimum and Maximum Number of Nodes Between Critical Points

4th, July - Merge Nodes in Between Zeros

3rd, July - Minimum Difference Between Largest and Smallest Value in Three Moves

2nd, July - Intersection of Two Arrays

1st, July - Three Consecutive Odds

June

28th, June - Maximum Total Importance of Roads

27th, June - Find Center of Star Graph

26th, June - Balance a Binary Search Tree

25th, June - Binary Search Tree to Greater Sum Tree

23rd, June - Longest Continuous Subarray with Absolute Diff less than or Equal to Limit

22nd, June - Count Number of Nice Subarrays

21st, June - Grumpy Bookstore Owner

20th, June - Magnetic Force Between Two Balls

19th, June - Minimum Number of Days to Make m Bouquets

18th, June - Most Profit Assigning Work

17th, June - Sum of Square Numbers

16th, June - Patching Array

15th, June - IPO

14th, June - Minimum Increment to Make Array Unique

13th, June - Minimum Number of Moves to Seat Everyone

12th, June - Sort Colours

11th, June - Relative Sort Array

10th, June - Height Checker

9th, June - Subarray Sums Divisible by K

8th, June - Continuous Subarray Sum

7th, June - Replace Words

6th, June - Hand of Straights

5th, June - Find Common Characters

4th, June - Longest Palindrome

3rd, June - Append Characters to String to Make Subsequence

2nd, June - Reverse String

1st, June - Score of a String

May

31st, May - Single Number III

30th, May - Count Triplets That Can Form Two Arrays of Equal XOR

29th, May - Number of Steps to Reduce a Number in Binary Representation to One

28th, May - Get Eaqual Substrings within Budget

27th, May - Special Array with X Elements Greater Than or Eaqual X

25th, May - Word Break II

24th, May - Maximum Score Words Formed by Letters

23rd, May -The Number of Beautiful Subsets

22nd, May - Palindrome Partitioning

21st, May - Subsets

20th, May - Sum of All Subset XOR Totals

16th, May - Evaluate Boolean Binary Tree

13th, May - Score After Flipping Matrix

10th, May - Kth Smallest Prime Fraction

9th, May - Maximise Happiness of Selected Children

8th, May - Relative Ranks

7th, May - Double a Number Represented as a Linked List

6th, May - Remove Nodes From Linked List

5th, May - Delete Node in a Linked List

4th, May - Boats to Save People

3rd, May - Compare Version Number

2nd, May - Largest Positive Integer that Exists with Its Negative

1st, May - Reverse Prefix of Word

April

30th, Apr - Number of Wonderful Substrings

29th, Apr - Minimum Number of Operations to Make Array XOR Equal to K

28th, Apr - Sum of Distances in Tree

26th, Apr - Minimum Falling Path Sum II

25th, Apr - Longest Ideal Subsequence

24th, Apr - N-th Tribonacci Number

23rd, Apr - Minimum Height Trees

22nd, Apr - Open the Lock

21st, Apr - Find if Path Exists in Graph

20th, Apr - Find All Groups of Farmland

19th, Apr - Number of Islands

18th, Apr - Island Perimeter

17th, Apr - Smallest String Starting From Leaf

16th, Apr - Add One Row to Tree

15th, Apr - Sum Root to Leaf Numbers

14th, Apr - Sum of Left Leaves

12th, Apr - Trapping Rain Water

11th, Apr - Remove K Digits

10th, Apr - Reveal Cards In Increasing Order

9th, Apr - Time Needed to Buy Tickets

8th, Apr - Number of Students Unable to Eat Lunch

7th, Apr - Valid Parenthesis String

6th, Apr - Minimum Remove to Make Valid Parentheses

5th, Apr - Make the String Great

4th, Apr - Maximum Nesting Depth of the Parentheses

3rd, Apr - Word Search

2nd, Apr - Isomorphic Strings

1st, Apr - Length of Last Word

March

31st, Mar - Count Subarrays with Fixed Bounds

30th, Mar - Subarrays with K Different Integers

29th, Mar - Count Subarrays Where Max Element Appears at Least K Times

28th, Mar - Length of Longest Subarray with at Most K Frequency

27th, Mar - Subarray Product Less Than K

26th, Mar - First Missing Positive

25th, Mar - Find All Duplicates in a Array

24th, Mar - Find the Duplicate Number

23rd, Mar - Reorder List

22nd, Mar - Palindrome Linked List

21st, Mar - Reverse Linked List

20th, Mar - Merge in Between Linked Lists

19th, Mar - Task Scheduler

18th, Mar - Minimum Number of Arrows to Burst Balloons

17th, Mar - Insert Interval

16th, Mar - Contiguous Array

15th, Mar - Product of Array Except Self

14th, Mar - Binary Subarrays with Sum

13th, Mar - Find the Pivot Integer

12th, Mar - Remove Zero Sum Consecutive Nodes from Linked List

11th, Mar - Custom Sort String

10th, Mar - Intersection of Two Arrays

9th, Mar - Minimum Common Value

8th, Mar - Count Elements with Maximum Frequency

7th, Mar - Middle of the Linked List

6th, Mar - Linked List Cycle

5th, Mar - Minimum Length of String After Deleting Similar Ends

4th, Mar - Bag of Tokens

3rd, Mar - Remove Nth Node from End of List

2nd, Mar - Squares of a Sorted Array

1st, Mar - Maximum Odd Binary Number

Feburary

29th, Feb - Even Odd Tree

28th, Feb - Find Bottom Left Tree Value

27th, Feb - Diameter of Binary Tree

26th, Feb - Same Tree

24th, Feb - Find All People With Secret

23rd, Feb - Cheapest Flights Within K Stops

22nd, Feb - Find the Town Judge

21st, Feb - Bitwise AND of Numbers Range

20th, Feb - Missing Number

19th, Feb - Power of Two

18th, Feb - Meeting Rooms III

17th, Feb - Furthest Building You Can Reach

16th, Feb - Least Number of Unique Integers After K Removals

15th, Feb - Find Polygon With the Largest Perimeter

14th, Feb - Rearrange Array Elements by Sign

13th, Feb - Find First Palindromic String in the Array

12th, Feb - Majority Element

10th, Feb - Palindromic Substrings

9th, Feb - Largest Divisible Subset

7th, Feb - Sort Characters By Frequency

6th, Feb - (extra)Insertion Sort List

6ht, Feb - Group Anagrams

5th, Feb - First Unique Character in a String

3rd, Feb - Partition Array for Maximum Sum

2nd, Feb - Sequential Digits

1st, Feb - Divide Arrays into Arrays with Max Difference

January

31st, Jan - Daily Temperatures

30th, Jan - Evaluate Reverse Polish Notation

29th, Jan - Implement Queue using Stacks

24th, Jan - Pseudo Palindromic Paths in a Binary Tree

22nd, Jan - Set Mismatch

21st, Jan - House Robber

20th, Jan - Sum of Subarray Minimums

19th, Jan - Minimum Falling Path Sum

17th, Jan - Unique Number of Occurrences

16th, Jan - Insert Delete GetRandom O(1)

15th, Jan - Find Players With Zero or One Losses

4th, Jan - Minimum Number of Operations to Make Array Empty

3rd, Jan - Number of Laser Beams in a Bank

2nd, Jan - Convert an Array Into a 2D Array with Conditions

1st, Jan - Assign Cookies

2023

December

30th, Dec - Redistribute Characters to Make All Strings Equal

27th, Dec - Minimum Time to Mkae Rope Colourful

26th, Dec - Number of Dice Rolls With Target Sum

25th, Dec - Decode Ways

24th, Dec - Minimum Changes To Make Alternating Binary String

23rd, Dec - Path Crossing

22nd, Dec - Maximum Score After Splitting a String

21st, Dec - Widest Vertical Area Between Two Points Containing No Points

20th, Dec - Buy two chocolates

19th, Dec - Image Smoother

18th, Dec - Maximum Product Difference Between Two Pairs

17th, Dec - Design a Food Rating System

16th, Dec - Valid Anagram

15th, Dec - Destination City

14th, Dec - Difference Between Ones and Zeros in Row and Column

13th, Dec - Special Positions in a Binary Matrix

12th, Dec - Maximum Product of Two Elements in an Array

11th, Dec - Element Appearing More Than 25% In Sorted Array

10th, Dec - Transpose Matrix

9th, Dec - Binary Tree Traversal

8th, Dec - Construct String from Binary Tree

7th, Dec - Largest Odd Number in String

6th, Dec - Calculate Money in Leetcode Bank

5th, Dec - Count of Matches in Tournament

4th, Dec - Largest 3 Same Digit Number in String

3rd, Dec - Minimum Time Visiting All Points

2nd, Dec - Find Words That Can Be Formed by Characters

1st, Dec - Check If Two String Arrays are Equivalent

November

1st, Nov - Find Mode in Binary Search Tree

2nd, Nov - Count Nodes Equal to Average of Subtree

3rd, Nov - Build an Array with Stack Operations

4th, Nov - Last Moment Before All Ants Fall Out of a Plank

5th, Nov - Find the Winner of an Array Game

6th, Nov - Seat Reservation Manager

7th, Nov - Eliminate Maximum Number of Monsters

8th, Nov - Determine if a Cell Is Reachable at a Given Time

9th, Nov - Count Number of Homogenous Substrings

10th, Nov - Restore the Array From Adjacent Pairs

11th, Nov - Design Graph With Shortest Path Calculator

12th, Nov - Bus Routes

13th, Nov - Sort Vowels in a String

14th, Nov - Unique Length-3 Palindromic Subsequences

15th, Nov - Maximum Element After Decreasing and Rearranging

16th, Nov - Find Unique Binary String

17th, Nov - Minimize Maximum Pair Sum in Array

18th, Nov - Frequency of the Most Frequent Element

19th, Nov - Reduction Operations to Make the Array Elements Equal

20th, Nov - Minimum Amount of Time to Collect Garbage

21st, Nov - Count Nice Pairs in an Array

22nd, Nov - Diagonal Traverse

23rd, Nov - Arithmetic Subarrays

24th, Nov - Maximum Number of Coins You Can Get

25th, Nov - Sum of Absolute Differences in a Sorted Array

26th, Nov - Largest Submatrix with Rearrangement

27th, Nov - Knight Diagler

28th, Nov - Number of Ways to Divide a Long Corridor

29th, Nov - Number of 1 Bits

30th, Nov - Maximum Number of Vowles in a Substring of Given Length

October

1st, Oct - Reverse Words in a String

2nd, Oct - Remove Colored Pieces if Both Neighbors are the Same Color

3rd, Oct - Number of Good Pairs

4th, Oct - Design_HashMap

5th, Oct - Majority Element

6th, Oct - Integer Break

7th, Oct - Lowest Common Ancestor of a Binary Search Tree

8th, Oct - Max Dot Product of Two Subsequences

9th, Oct - Find First and Last Position of Element in Sorted Array

10th, Oct - Minimum Number of Operations to Make Array Continuous

11th, Oct - Number of Flowers in Full Bloom

12th, Oct - Find in Mountain Array

13th, Oct - Min Cost Climbing Stairs

14th, Oct - Find Peak Element

15th, Oct - Number of Ways to Stay in the Same Place After Some Steps

16th, Oct - Pascals Triangle

17th, Oct - Validate Binary Tree Nodes

18th, Oct - Parallel Courses III

19th, Oct - Backspace String Compare

20th, Oct - Flatten Nested List Iterator

21st, Oct - Constrained Subsequence Sum

22nd, Oct - Maximum Score of a Good Subarray

23rd, Oct - Power_of_Four

24th, Oct - Find Largest Value in Each Tree Row

25th, Oct - Kth Symbol in Grammar

26th, Oct - Binary Trees with Factors

27th, Oct - Longest Palindromic Substring

28th, Oct - Count Vowels Permutation

29th, Oct - Poor Pigs

30th, Oct - Sort Integers by The Number of 1 Bits

31st, Oct - Find The Original Array of Prefix Xor

September

1st, Sept - Counting Bits

2nd, Sept - Extra Characters in a String

3rd, Sept - Unique Paths

4th, Sept - Linked List Cycle

5th, Sept - Copy List with Random Pointer

6th, Sept - Split Linked List in Parts

7th, Sept - Reverse Linked List II

8th, Sept - Pascal's Triangle

9th, Sept - Combination Sum IV

10th, Sept - Count All Valid Pickup and Delivery Options

11st, Sept - Group the People Given the Group Size They Belong To

12th, Sept - Minimum Deletions to Make Character Frequencies Unique

13th, Sept - Candy

14th, Sept - Reconstruct Itinerary

15th, Sept - Min Cost to Connect All Points

16th, Sept - Path With Minimum Effort

17th, Sept - N-th Tribonacci Number

18th, Sept - The K Weakest Rows in a Matrix

19th, Sept - Find the duplicate Number

20th, Sept - Minimum Operations to Reduce X to Zero

21st, Sept - Median of Two Sorted Arrays

22nd, Sept - Is Subsequence

23rd, Sept - Longest String Chain

24th, Sept - Champagne Tower

25th, Sept - Find the Difference

26th, Sept - Remove Duplicate Letters

27th, Sept - Decoded String at Index

28th, Sept - Sort by Parity

29th, Sept - Monotonic_Array

30th, Sept - 132 Pattern

August

14th, Aug - Kth Largest Element

15th, Aug - Partition List

16th, Aug - Sliding Window Maximum

17th, Aug - 01 Matrix

18th, Aug - Maximal Network Rank

19th, Aug - Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree

20th, Aug - Delete_Node_in_a_BST

21st, Aug - Repeated Substring Pattern

22nd, Aug - Excel Sheet Column Title

23rd, Aug - Reorganize String

24th, Aug - Text Justification

25th, Aug - Interleaving String

26th, Aug - Maximum Length of Pair Chain

27th, Aug - Frog Jump

28th, Aug - Implement Stack using Queues

29th, Aug - Minimum Penalty for a Shop

30th, Aug - Minimum Replacements to Sort the Array

31st, Aug - Minimum Number of Taps to Open to Water a Garden

About

Daily Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors