All Posts

Nth Magical Number Problem

LeetCode 878. A positive integer is magical if it is...

New 21 Game Problem

LeetCode 837. Alice plays the following game, loosely based on...

Most Profit Assigning Work Problem

LeetCode 826. You have n jobs and m workers. You...

Most Common Word Problem

LeetCode 819. Given a string paragraph and a string array...

Monotonic Array Problem

LeetCode 896. An array is monotonic if it is either...

Mirror Reflection Problem

LeetCode 858. There is a special square room with mirrors...


Minimum Increment To Make Array Unique Problem

LeetCode 945. You are given an integer array nums. In...

Minimum Falling Path Sum Problem

LeetCode 931. Given an n x n array of integers...

Minimum Cost To Merge Stones Problem

LeetCode 1000. There are n piles of stones arranged in...

Minimum Cost To Hire K Workers Problem

LeetCode 857. There are n workers. You are given two...

Minimum Cost For Tickets Problem

LeetCode 983. You have planned some train traveling one year...

Minimum Area Rectangle Problem

LeetCode 939. You are given an array of points in...

Minimum Add To Make Parentheses Valid Problem

LeetCode 921. A parentheses string is valid if and only...