All Posts

Online Election Problem

LeetCode 911. You are given two integer arrays persons and...

Odd Even Jump Problem

LeetCode 975. You are given an integer array arr. From...

Numbers With Same Consecutive Differences Problem

LeetCode 967. Return all non-negative integers of length n such...

Numbers At Most N Given Digit Set Problem

LeetCode 902. Given an array of digits which is sorted...

Number Of Squareful Arrays Problem

LeetCode 996. An array is squareful if the sum of...

Number Of Recent Calls Problem

LeetCode 933. You have a RecentCounter class which counts the...

Number Of Music Playlists Problem

LeetCode 920. Your music player contains n different songs. You...

Number Of Lines To Write String Problem

LeetCode 806. You are given a string s of lowercase...


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...