Distribute Coins in Binary TreeYou are given the root of a binary tree with n nodes where each node in the tree has node.val coins. There are n coins in total throughout…May 181May 181
Maximum Length of Subarray With Positive ProductGiven an array of integers nums, find the maximum length of a subarray where the product of all its elements is positive.May 9May 9
Boats to Save PeopleYou are given an array people where people[i] is the weight of the ith person, and an infinite number of boats where each boat can carry a…May 4May 4
Find the Smallest Divisor Given a ThresholdGiven an array of integers nums and an integer threshold, we will choose a positive integer divisor, divide all the array by it, and sum…Feb 8, 2023Feb 8, 2023
Find All Anagrams in a StringGiven two strings s and p, return an array of all the start indices of p's anagrams in s. You may return the answer in any order.Feb 6, 2023Feb 6, 2023
Bus RoutesYou are given an array routes representing bus routes where routes[i] is a bus route that the ith bus repeats forever.Jan 28, 2023Jan 28, 2023
Concatenated WordsGiven an array of strings words (without duplicates), return all the concatenated words in the given list of words.Jan 27, 2023Jan 27, 2023
Find Closest Node to Given Two NodesYou are given a directed graph of n nodes numbered from 0 to n - 1, where each node has at most one outgoing edge.Jan 25, 2023Jan 25, 2023
Best Time to Buy and Sell Stock with Transaction FeeYou are given an array prices where prices[i] is the price of a given stock on the ith day, and an integer fee representing a transaction…Nov 30, 2022Nov 30, 2022
Maximum Area of a Piece of Cake After Horizontal and Vertical CutsYou are given a rectangular cake of size h x w and two arrays of integers horizontalCuts and verticalCuts where:Nov 6, 2022Nov 6, 2022