All Posts

Prime Palindrome Problem

LeetCode 866. Given an integer n, return the smallest prime...

Powerful Integers Problem

LeetCode 970. Given three integers x, y, and bound, return...

Positions Of Large Groups Problem

LeetCode 830. In a string sof lowercase letters, these letters...

Peak Index In A Mountain Array Problem

LeetCode 852. Let’s call an array arr a mountainif the...

Partition Array Into Disjoint Intervals Problem

LeetCode 915. Given an integer array nums, partition it into...


Pancake Sorting Problem

LeetCode 969. Given an array of integers arr, sort the...

Orderly Queue Problem

LeetCode 899. You are given a string s and an...

Online Stock Span Problem

LeetCode 901. Design an algorithm that collects daily price quotes...

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