Difficulty: Medium

Shorted Unsorted Subarray

Find the shorted subarray that if we sort only this array in ascending order, the whole will be sorted in ascending order.

Read

Maximum Width of a Binary Tree

Given the root of a binary tree, return the maximum width of the given tree.

Read

Find All the Start Indicies of an Anagram in a Separate String

Given two strings `s` and `p`, find all the start indices of `p`'s anagrams in `s`.

Read

Open the Lock

Minimum number of turns required to open a lock.

Read

Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts

Find maximum area of a piece of cake after making horizontal and vertical cuts.

Read

Find the Maximum Subarray Sum with Unique Values

Given an array, find the maximum subarray sum with unique values.

Read

Maximum Product of Word Lengths

Given an array of strings, return the maximum value of the product of lengths where two words do not share any common letters.

Read

Minimum Amount of Coins Required to Make up an Amount

You are given an infinite number of coins of different denominations and an amount. Find the minimum number of coins required to make up that amount.

Read